<cfset MYLIST = 9,18,35,50,75,100>
A changing sales total is passed via FORM.TOTALCOST. The total can be any value, such as $10.47, etc. Again, TOTALCOST changes for each user so its value can be anything.
How can I find which number in TOTALCOST is closest to but not surpassing MYLIST?
I assume using CFLOOP is needed to compare the list but I need to see how this works in a working cfm code example using my values. Need this ASAP.
Start Free Trial