diff --git a/coldfusion.html.markdown b/coldfusion.html.markdown index 6a9b69f0..e2f0737d 100644 --- a/coldfusion.html.markdown +++ b/coldfusion.html.markdown @@ -146,263 +146,176 @@ ColdFusion is a scripting language for web development.
Value | +As Boolean | +As number | +As date-time | +As string | +
---|---|---|---|---|
"Yes" | +TRUE | +1 | +Error | +"Yes" | +
"No" | +FALSE | +0 | +Error | +"No" | +
TRUE | +TRUE | +1 | +Error | +"Yes" | +
FALSE | +FALSE | +0 | +Error | +"No" | +
Number | +True if Number is not 0; False otherwise. | +Number | +See "Date-time values" earlier in this chapter. | +String representation of the number (for example, "8"). | +
String | +If "Yes", True If "No", False If it can be converted to 0, False If it can be converted to any other number, True |
+ If it represents a number (for example, "1,000" or "12.36E-12"), it is converted to the corresponding number. | +If it represents a date-time (see next column), it is converted to the numeric value of the corresponding date-time object. If it is an ODBC date, time, or timestamp (for example "{ts '2001-06-14 11:30:13'}", or if it is expressed in a standard U.S. date or time format, including the use of full or abbreviated month names, it is converted to the corresponding date-time value. Days of the week or unusual punctuation result in an error. Dashes, forward-slashes, and spaces are generally allowed. |
+ String | +
Date | +Error | +The numeric value of the date-time object. | +Date | +An ODBC timestamp. | +
+<cfcomponent> + <cfset this.hello = "Hello" /> + <cfset this.world = "world" /> + + <cffunction name="sayHello"> + <cfreturn this.hello & ", " & this.world & "!" /> + </cffunction> + + <cffunction name="setHello"> + <cfargument name="newHello" type="string" required="true" /> + + <cfset this.hello = arguments.newHello /> + + <cfreturn true /> + </cffunction> + + <cffunction name="setWorld"> + <cfargument name="newWorld" type="string" required="true" /> + + <cfset this.world = arguments.newWorld /> + + <cfreturn true /> + </cffunction> + + <cffunction name="getHello"> + <cfreturn this.hello /> + </cffunction> + + <cffunction name="getWorld"> + <cfreturn this.world /> + </cffunction> +</cfcomponent> ++ +
#sayHello()#
#getHello()#
#getWorld()#
#setHello("Hola")#
#setWorld("mundo")#
#sayHello()#
#getHello()#
#getWorld()#