|
|
|
|
|
%calculate()
Aliases | %calculate( ), %calc( ) |
---|
Parameters | mixed @lOperand, string @operator, mixed @rOperand |
---|
|
Historical calculation function in use by many of the old scripts. This command is deprecated since it isn't nearly as functional as using the eval function %( ) to evaluate any logical expression. Traditionally the function took a left operand, an operator (+, -, *, /, %), and a right operand and then returned the result of applying operator to the right and left operands in INTEGER arithmetic.
DEPRECATED - use the eval function %() for calculations within commands and just do calculations if within a logic expression like if, elseif, or while. |
|
|
|
|
|
|
|