跳轉到內容

Gambas/運算子

來自華夏公益教科書,開放的書籍,為開放的世界

The Gambas programming language provides a set of operators that allow values and variables to be compared, evaluated or manipulated. These operators can combined together with values and variables to make expressions. The operators may take unary, dyadic or ternary form, depending on the number of operands that they utilize.

賦值運算子

[編輯 | 編輯原始碼]

In Gambas, as with most other programming languages, the equals sign acts as a dyadic assignment operator that assigns the value of the expression of the right hand operand to the variable named by the left operand.

微調運算子

[編輯 | 編輯原始碼]

The nudge operators ++ and -- are not supported in Gambas. However the INC and DEC commands and combination assignment operators can be used to increment or decrement the values of variables.

華夏公益教科書