Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

演算子の優先順位

算術演算子を結合して、複雑な算術式を記述することができます。ObjectScript には、演算子の優先順位規則はありません。代わりに、式の評価は演算子に関係なく、左から右に処理されます。ただし、括弧は除きます。複雑な式は、常に括弧を使用して明確にする必要があります。

ターミナル


USER>set x = 3 + 5 * 6 - 4

USER>write x
44
USER>set x = 3 + ( 5 * 6 ) - 4

USER>write x
29
USER>
FeedbackOpens in a new tab