Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

関係演算子

If 文の条件は、True か False に評価される論理式です。条件は関係演算子で記述されます。

関係演算子
演算子 演算 例 (条件が True の場合)
= 等しい if (2 = 2) { write "equal" }
> より大きい if (4 > 3) { write "greater than" }
< より小さい if (3 < 4) { write "less than" }
>= より大きいか等しい if (4 >= 3) { write "greater than or equal" }
<= より小さいか等しい if (3 <= 3) { write "less than or equal" }
FeedbackOpens in a new tab