Example 1b
ColdFusion assumes ALL values (including numbers) as String types unless the variable is called in an arithmetic expression. If the String can be converted to a Number type for a calculation, CF will automatically do that for you -- no need to "cast" (or change) the variable type.
Defined values:
valueA = 7
valueB = 8
Concatented variable:
connected = 78
Calculated variable
added = 15
- - - - -
» See CFML code for this page
« Go to Workshop Home