Difference between revisions of "IF Condition"

From ArcoWiki
Jump to: navigation, search
(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...")
 
 
(3 intermediate revisions by one other user not shown)
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>
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>
 +
 +
[[it:Condizione IF]]
 +
[[zh-cn:如果条件]]
 +
[[pt:SE condição]]
 +
[[de:IF Bedingung]]
 +
[[es:Condición IF]]
 +
[[en:IF Condition]]
 +
 +
[[Category:Dmis_Tutorial]]

Latest revision as of 09:13, 7 June 2018

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