Difference between revisions of "IF Condition"
From ArcoWiki
m (Links to existing pages added by LinkTitles bot.) |
|||
| Line 8: | Line 8: | ||
::::<code>TEXT/OPER,'You wrote a negative Number'<br/></code> | ::::<code>TEXT/OPER,'You wrote a negative Number'<br/></code> | ||
::<code>ENDIF</code> | ::<code>ENDIF</code> | ||
| + | |||
| + | [[Category:Dmis_Tutorial]] | ||
Revision as of 15:16, 4 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'
ELSETEXT/OPER,'You wrote a negative Number'
ENDIF