Y o u r F i r s t C o l d F u s i o n W e b P a g eIn the example below, the difference between the HTML code and the HTML/ColdFusion code is the addition of the <cfoutput></cfoutput> tags and the complex-looking #DayofWeekAsString(DayofWeek(Now()))#.
The <cfoutput></cfoutput> tags inform ColdFusion to process any code found between # symbols. In the example above three ColdFusion functions are used; the Now() function, the DayofWeek() function and the DayofWeekAsString() function.
ColdFusion processed the functions from the inside out, starting with the Now(), then the DayofWeek() and finally the DayofWeekAsString() before displaying the final result. Tip: Coldfusion statements are not case sensitive - dAYoFwEEkAsstrINg is the same as DayofWeekAsString.
|
copyright 2003 Xhost Ltd All rights reserved