I just wanted to change the font or text color of the winning percentage based on a number. Be sure to use the double pound signs to escape ColdFusion from atempting to assume it is missing an ending pound sign. The LSNumberFormat at the end makes the number show up as a nice number percent.
-
<cfif #WinPercent# LTE 40>
-
<!--- Font Color Red --->
-
<font color="##FF0000">
-
<cfelseif #WinPercent# GT 41 AND #WinPercent# LTE 55>
-
<!--- Font Color Black --->
-
<font color="##000000">
-
<cfelseif #WinPercent# GT 56 AND #WinPercent# LTE 70>
-
<!--- Font Color Blue --->
-
<font color="##0000FF">
-
<cfelseif #WinPercent# GT 71>
-
<!--- Font Color Green --->
-
<font color="##009900">
-
</cfif>
-
<cfoutput>
-
<p>#LSNumberFormat(WinPercent, '99.99')# %</p>
-
</cfoutput>