Ok, thanks, CFIF SGN works correctly for the FIRST record, but, since I'm outputting these in a single row, one at a time, (using startrow="1", startrow="2", etc.), ALL the outputs of #NOFSDIFF# in "currcolor" come out red, based on (I assume) the value of the FIRST record, which is negative (the second and third are positive, and should be green).
I should need to enter the CFIF statement only ONCE (not for EACH output), correct?
Here's the code:
<CFIF SGN (#TickerDiffQ.NOFSDIFF#) IS 1>
<!--- positive result --->
<CFSET currcolor="green">
<CFELSEIF SGN(#TickerDiffQ.NOFSDIFF#) IS -1>
<!--- negative result --->
<CFSET currcolor="red">
<CFELSE>
<!--- result is 0--->
<CFSET currcolor="black">
</CFIF>
<cfoutput query="TickerDiffQ" STARTROW="1" MAXROWS="1">
<div align="center"> <font size="4"><i><font color="blue"><b>#MAKEABBR#</b></font></i></font></div>
</td>
<td rowspan="2" height="48" bgcolor="white">
<div align="center"> <font size="4"><i><font color="blue"><b>#MODELABBR#</b></font></i></font></div>
</td>
<td height="23" bgcolor="white">
<div align="center"><font face="Georgia, Times New Roman, Times, serif"><b><font color="black">#NOFSNEW#<br>#FLEET#%</font></b></font></div></td>
<td height="48" bgcolor="white">
<div align="center"><font face="Georgia, Times New Roman, Times, serif"><b><font color="currcolor">#NOFSDIFF#</font></b></font></div>
</cfoutput></td>
<!--EMPTY SPACER CELL HERE: -->
<td rowspan="2" height="48" bgcolor="white"> </td>
<!--(ok) NEXT RECORD TABLE CELLS HERE: -->
<!-- ********* -->
<td height="48" bgcolor="white">
<cfoutput query="TickerDiffQ" STARTROW="2" MAXROWS="1">
<div align="center"> <font size="4"><i><font color="blue"><b>#MAKEABBR#</b></font></i></font></div>
</td>
<td rowspan="2" height="48" bgcolor="white">
<div align="center"> <font size="4"><i><font color="blue"><b>#MODELABBR#</b></font></i></font></div>
</td>
<td height="23" bgcolor="white">
<div align="center"><font face="Georgia, Times New Roman, Times, serif"><b><font color="black">#NOFSNEW#<br>#FLEET#%</font></b></font></div>
</td>
<td height="48" bgcolor="white">
<div align="center"><font face="Georgia, Times New Roman, Times, serif"><b><font color="currcolor">#NOFSDIFF#</font></b></font></div>
</cfoutput></td>
<!--EMPTY SPACER CELL HERE: -->
<td rowspan="2" height="48" bgcolor="white"> </td>
<!--(ok) NEXT RECORD TABLE CELLS HERE: -->
<!-- ********* -->