跳转到内容

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.

华夏公益教科书