Ihave a form that has 5 drop down boxes that contain choices with assigned variables that repreent a discount percentage. I also have 5 numeric filedsthat calculate anumber next to each of these boxes.
I need to create an IF statement or something that will determine the value in each of the first 5 drop downs and if it is equal to something then add up the coresponding total boxes next to it.
Here is what I was thinking but I can not get it to work.
If (Payment1 =1 or Payment2 =1 or Payment3 =1 ...) Then sum (total1+total2=..)
The issue is getting the statement worked out where it will only sum the total boxes if the IF statement is true
2. The parameter list in your "Sum()" function does not follow the required format. You must serparate the parameters with a ",".
3. "if' statements end with an "endif" in FormCalc.
4. Letter case is significant in FormCald and JavaScript.
if (Payment1 == 1 or Payment2 == 1 or Payment3 == 1) then
Sum (total1, total2, total3)
endif
George Kaiser