Help!!!  I can't figure out how to get this to work.

If the field says 100 then return 100, if its less than 100 then return
field value, if its over 100 then return 100 and then the remainder.  125
would be 100 and then 25.

//if its over 100 then return 100
if (Field("total") > 100)
return "100"
 
//if there is a remainder, return remainder for 125 return 25
return Right(Field("total"), 2);
 
//if its less than 100 return field value
if (Field("total") <= 100)
return (getfieldvalue("total"));

--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] 
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to