IF Condition

From ArcoWiki
Revision as of 09:13, 7 June 2018 by Slia (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The IF condition direct the program based on the conditional execution of a logical expression.

$$ Example of IF declaration

TEXT/QUERY,(number),50,N,L,'Type a positive or negative number'
IF/(number.GT.0)
TEXT/OPER,'You wrote a positive Number'
ELSE
TEXT/OPER,'You wrote a negative Number'
ENDIF