3.2. Data Types in ColdFusion

ColdFusion is referred to as a weakly typed language. That means that it is not necessary for the programmer to make distinctions between different types of data used in a program. For instance, ColdFusion will, as you know, process both of these statements in a roughly equivalent manner:

<cfset myNumber = '2'> ~= <cfset yourNumber = 'two'> 

Of course this does not mean that the following statement returns true:

<cfif myNumber eq yourNumber>... 

It does mean that it is very easy to start using ColdFusion, because it cuts down on the amount of code you have to write, how much you have to remember about the language when you're working, and it decreases necessary effort in outputting, testing, or otherwise referencing ...

Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.