如果條件

出自 ArcoWiki
於 2018年6月7日 (四) 09:13 由 Slia (對話 | 貢獻) 所做的修訂 (创建页面,内容为“The '''IF condition''' direct the program based on the conditional execution of a logical expression. <code><span style="color: green; text-decorat…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
前往: 導覽搜尋

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