Difference between revisions of "IF Condition"
From ArcoWiki
(Created page with "The '''IF condition''' direct the program based on the conditional execution of a logical expression. <code><span style="color: green; text-decoration: none;">$$ Example of I...") |
m (Links to existing pages added by LinkTitles bot.) |
||
Line 1: | Line 1: | ||
− | The '''IF condition''' direct the program based on the conditional execution of a logical expression. | + | The '''[[IF Condition|IF condition]]''' direct the program based on the conditional execution of a logical expression. |
<code><span style="color: green; text-decoration: none;">$$ Example of IF declaration</span><br/></code> | <code><span style="color: green; text-decoration: none;">$$ Example of IF declaration</span><br/></code> |
Revision as of 12:31, 3 August 2016
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