This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:variableoperators [2016/08/09 18:19] admin |
en:variableoperators [2016/08/17 13:01] admin [Variable Operators] |
||
---|---|---|---|
Line 5: | Line 5: | ||
^Variable Operators^^^^ | ^Variable Operators^^^^ | ||
^Operator^Name^Example^Comments^ | ^Operator^Name^Example^Comments^ | ||
- | |:3=|: | + | |=|Assign |
- | |z = " | + | | | |z = " |
- | |q$ = 9.9| | | + | | | |q$ = 9.9| | |
|+=|Add to a Variable|a += 7|Same as a = a + 7| | |+=|Add to a Variable|a += 7|Same as a = a + 7| | ||
- | |+=|Concatenate to a Variable|f += " | + | | |Concatenate to a Variable|f += " |
|-=|Subtract from a Variable|a -= 9|Same as a = a - 9| | |-=|Subtract from a Variable|a -= 9|Same as a = a - 9| | ||
|*=|Multiply a Variable|a *= 2|Same as a = a * 2| | |*=|Multiply a Variable|a *= 2|Same as a = a * 2| | ||
|/=|Divide a Variable|a /= 8|Same as a = a / 8| | |/=|Divide a Variable|a /= 8|Same as a = a / 8| | ||
- | |%%++%%|Increment Prefix|%%++a%%|Increment (add one) the the variable and return the value after the increment. (may be applied ONLY to numeric variables or array elements) | + | |%%++%%|Increment Prefix|%%++a%%|Increment (add one) the the variable and return the value after the increment. (may be applied ONLY to numeric variables or array elements)| |
- | |%%++%%|Increment Suffix|%%a++%%|Return the value of the variable and then increment the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements) | + | |%%++%%|Increment Suffix|%%a++%%|Return the value of the variable and then increment the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements)| |
- | |--|Decrement Prefix|--a|Decrement (subtract one) the the variable and return the value after the decrement. (may be applied ONLY to numeric variables or array elements) | + | |--|Decrement Prefix|--a|Decrement (subtract one) the variable and return the value after the decrement. (may be applied ONLY to numeric variables or array elements)| |
- | |--|Decrrement | + | |--|Decrement |
+ | |[[fill|fill]]|Array Fill|a fill 99\\a fill "" |