Back
Subroutines and functions can be defined.
The syntax of defining a function shown as follows.
Function name (argument ...) statement ... End FunctionTo assign a value to function name, you can specify the return value of the function.
The syntax of defining a subroutine shown as follows.
To assign a value to function name, you can specify the return value of the function.
Sub name (argument ...) statement ... End Sub
operator | association | description |
---|---|---|
(unary)- sin cos tan exp log | left to right | negate the sign, computing sin, cos, tan, exp and log, respectively You can use the power of trigonometric function as sin^positive-value. You can compute the power of inverted trigonometric function as sin^negarive-value. You can also specify the base of logarithm as log_base. |
^ | right to left | power |
* / | left to right | multipication, division |
+ - | left to right | addition, subtraction |
= | left to right | 1 if both value is equal, otherwise 0 |
<> | left to right | 1 if both value is not equal, otherwise 0 |
< | left to right | 1 if the left value is less than the right value, otherwise 0 |
> | left to right | 1 if the left value is more than the right value, otherwise 0 |
<= | left to right | 1 if the left value is less than or equal to the right value, otherwise 0 |
>= | left to right | 1 if the left value is more than or equal to the right value, otherwise 0 |
Not | left to right | logical not |
And | left to right | conjunction |
Or | left to right | logical sum |