

05 and entered in the target variable $FinalAmount. 05 ELSE $FinalAmount = + 10.00 END RETURN ($FinalAmount)ĬALCULATION: If the value of the section variable field FirstAmount is less than 1000.00 then the amount is multiplied by. Here is an example: IF < 1000.00) THEN $FinalAmount = *. If the logical expression is false, control passes to the statement after the ELSE keyword. IF Statement with ELSE ConditionĪn IF Statement with an ELSE condition contains an alternative calculation. The use of the keyword connector THEN is optional. The value of the $FinalAmount target variable is then returned to the section variable field. 05 END RETURN ($FinalAmount)ĬALCULATION: If the value of the section variable field FirstAmount is less than 1000.00 then the value is multiplied by. If the logical expression is false, control passes to the next statement after the END keyword. The calculation is performed only if the logical expression is true. Simple IF StatementĪ simple IF Statement contains a single statement block. IF statements can have three forms: a simple IF statement, an IF statement with an ELSE condition, or an IF statement with an ELSEIF condition. IF statements must begin with the keyword IF and terminate with the keyword END.Ĭomponents within IF statements can be connected with the keywords AND or OR. You are here: Keyword Reference > Keyword Table > If.End If.EndĪn IF statement is executed based on the occurrence of a certain condition.
