Rexx 编程/Rexx 指南/数值比较
外观
以下示例展示了使用比较运算符进行数值比较
x = 3 如果 x > 2 那么
say "x is greater than 2"
支持以下比较运算符
= Equal To \= Not Equal To < Less Than > Greater Than <= Less Than or Equal To >= Greater Than or Equal To \< Not Less Than \> Not Greater Than <> Not Equal To >< Not Equal To
为了进行数值比较,会忽略前导零
x = "002" if x = 2 then say "x equals 2"
y = " 10 " if y = 10 then say "y equals 10"