Input Syntax: Difference between revisions

Jump to navigation Jump to search
Line 69: Line 69:
! ''!''
! ''!''
| Negates the following expression's value.
| Negates the following expression's value.
Technically, this is implemented by subtracting the value from 1.
| <code>!`Button 1`</code>
| <code>!`Button 1`</code>
The virtual controller button will be pressed if and only if Button 1 is not pressed.
The virtual controller button will be pressed if and only if Button 1 is not pressed.
|-----------
|-----------
! ''+''
! ''+''
| Sums up the LHS value and the RHS value and clamps the sum to the 0.0-1.0 range.
| Sums up the LHS value and the RHS value.
| <code>`Axis 1+` + `Axis 2+`</code>
| <code>`Axis 1+` + `Axis 2+`</code>
|-----------
! ''-''
| Subtracts the RHS value from the LHS value.
| <code>`Axis 1+` / `Axis 2+`</code>
|-----------
! ''*''
| Multiplies LHS value and the RHS value.
| <code>`Axis 1+` * `Axis 2+`</code>
|-----------
! ''/''
| Divides the LHS value by the RHS value.
| <code>`Axis 1+` / `Axis 2+`</code>
|-----------
! ''%''
| Gives the value of LHS value modulos RHS value.
This means that the remainder of LHS value divided by RHS value is given.
| <code>`Axis 1+` % `Axis 2+`</code>
|-----------
! ''>''
| The expression is true if the LHS value is bigger than the RHS value.
| <code>`Axis 1+` > `Axis 2+`</code>
|-----------
! ''<''
| The expression is true if the LHS value is smaller than the RHS value.
| <code>`Axis 1+` < `Axis 2+`</code>
|-----------
|-----------
|}
|}

Navigation menu