An if expression is a conditional statement that evaluates a given simple expression for truth, and then returns the result of a list of expressions that correspond to the truth value. If the initial simple expression evaluates to false (0), FormCalc examines any elseif and else conditions for truth and returns the results of their expression lists if appropriate.
list of expressions
list of expressions
list of expressions
The result of the list of expressions associated with any valid conditions stated in the if expression.
Note:
You are not required to have any elseif(…) or else statements as part of your if expression, but you must state the end of the expression with endif.
1
 1 and 0
0
 Field3 = 0
 Field3 = 40
 Field3 = 10
Varies with the values of Field1 and Field2. For example, if Field1 is 20 and Field2 is 10, then this expression sets Field3 to 40.

If expressions