Changes

Jump to navigation Jump to search
30 bytes added ,  08:38, 20 July 2021
m
no edit summary
Line 201: Line 201:     
<source lang="JavaScript">
 
<source lang="JavaScript">
var amt = field("Amount");
+
var amount = field("Amount");
if (amt < 0) "#FF0000";
+
if (amount < 0) "#FF0000";     // Red
else if (amt > 0) "#00FF00";
+
else if (amount > 0) "#00FF00"; // Green
 
</source>
 
</source>
  

Navigation menu