Finished automatically generated docs
Time to correct it by itself
This commit is contained in:
51
docs/en/reference/EXPRESSION.md
Normal file
51
docs/en/reference/EXPRESSION.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# EXPRESSION
|
||||
|
||||
A named two-operand arithmetic expression. Reading the variable's value recomputes `OPERAND1 OPERATOR OPERAND2` in the current context every time, so the result tracks live changes to the input variables.
|
||||
|
||||
Operands may be numeric literals, variable names, or bracketed sub-expressions (see [Arithmetic](../engine/arithmetic.md)). `EXPRESSION` exposes no script methods.
|
||||
|
||||
## Fields
|
||||
|
||||
### OPERAND1
|
||||
|
||||
```
|
||||
STRING OPERAND1
|
||||
```
|
||||
|
||||
Left-hand operand of the expression.
|
||||
|
||||
### OPERAND2
|
||||
|
||||
```
|
||||
STRING OPERAND2
|
||||
```
|
||||
|
||||
Right-hand operand of the expression.
|
||||
|
||||
### OPERATOR
|
||||
|
||||
```
|
||||
STRING OPERATOR
|
||||
```
|
||||
|
||||
Binary operator applied to the operands. Accepted values:
|
||||
|
||||
| Value | Operation |
|
||||
| --- | --- |
|
||||
| `ADD` | addition |
|
||||
| `SUB` | subtraction |
|
||||
| `MUL` | multiplication |
|
||||
| `DIV` | division |
|
||||
| `MOD` | modulo |
|
||||
|
||||
The result-type rules (integer vs floating-point) mirror those of ordinary script arithmetic — see [Arithmetic — typing rule](../engine/arithmetic.md#typing-rule).
|
||||
|
||||
## Signals
|
||||
|
||||
### ONINIT
|
||||
|
||||
Fired when the object is initialised.
|
||||
|
||||
### ONSIGNAL
|
||||
|
||||
Fired when a signal arrives (see [Events and signals](../engine/events.md#onsignal)).
|
||||
Reference in New Issue
Block a user