SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
The pseudo-operators ++/--/p=

The ++ and -- operators are used to increase or decrease the value of a variable by 1.
x = 4
x ++ : REM x <- x + 1 = 5
x -- : REM x <- x - 1 = 4
The generic p= operators are used as in C Where p any character of -+/\*^%&|
x += 4 : REM x <- x + 4
x *= 4 : REM x <- x * 4
All these pseudo-operators are not allowed inside of expressions
y = x ++ ' ERROR
z = (y+=4)+5 ' ALSO ERROR


[Prev] [Next]