|
IF_SET
The IF_SET statement is essentially a shortcut for the IF statement, used to check if a given variable is on. In old GPP, it could be used as a generic if statement. In GPP2, it is only used to test the on flag of variables.
IF_SET ( <variable> ) // same as IF(VARSET(<variable>))
Sequence of execution statements...
END_IF;
Note that use of IF_SET is identical to using the IF statement with the VAR_SET function. The IF_SET / ELSE combination is also supported.
GPP2 will issue a runtime warning if the IF_SET statement is used with a non-modal variable (since this test is mostly useful for modal variables).
|