Math
40 scripting commands. Also as Markdown for agents.
- ! aReturns the negation of a Boolean expression. This means `true` becomes `false` and vice versa.
- +Add two Numbers, concatenate two Arrays or two Strings, or create a copy of an Array or HashMap.
- -Subtracts numbers or arrays from each another, negates a number. For arrays also see deleteAt and deleteRange.
- a != bReturns whether one value is not equal to another. String comparison is case-insensitive (e.g `"STRINGtext" != "stringTEXT" // returns false -…
- a % bRemainder of *a* divided by *b*.
- a && bReturns true only if both conditions are true. In case of the alternative syntax, lazy evaluation is used - if left operand is false, evaluation of…
- a * bReturns the value of *a* multiplied by *b*.
- a / bReturns the quotient of two numbers. If the divisor is 0 a *Division by zero* error is shown but the script does not stop and the result of such…
- a == bCheck if *a* is equal to *b*. String comparison is case-insensitive - use isEqualTo if case sensitivity is needed.
- a ^ b*a* raised to the power of *b*
- a greater bReturns true if a is greater than b, else returns false.
- a greater= bReturns if *a* is greater than or equal to *b*.
- a less bReturns if *a* is lesser than *b*.
- a less= bReturns true if a is less than or equal to b, else returns false.
- a or bReturns true if one or both conditions are true. In case of the alternative syntax, lazy evaluation is used. That means that if left operand is true,…
- absReturns absolute (positive) value of a real number.
- andReturns true only if both conditions are true. In case of the alternative syntax, lazy evaluation is used - if left operand is false, evaluation of…
- bezierInterpolationGets interpolated value based on Bézier curve with given control points (progress value is 0...1 for a curve that starts at pos0 and finishes at posN)
- ceilThe ceil value of x.
- decayGraphValuesMultiplies graph values by the given coefficient. The corresponding lower bound value is used instead if the product is smaller than the bound.
- expExponential function with the base e). Equal to `e^x`.
- falseAlways false.
- finiteReturns true if the provided number is finite (not infinite and a valid number).
- floorReturns the next lowest integer in relation to the provided number.
- getGraphValuesGenerate graph y - coordinates of all input values within specific x and y range.
- linearConversionConverts given value from given "from" range to wanted "to" range. If clipping is set to true, the resulting value is guaranteed to be within "to"…
- lnReturns the natural logarithm of x.
- logBase-10 logarithm of x.
- matrixMultiplyReturns resulting matrix from the multiplication of two matrices. First matrix must be of the size n × k, while the second must be of the size k × m,…
- matrixTransposeReturns transposed version of the given matrix. The matrix is an Array of rows. Each row is an Array of corresponding column values for the row. The…
- maxThe greater value of a and b.
- minThe smaller of a and b.
- modRemainder of a divided by b.
- notnot a is exactly the same as ! a.
- orReturns true if one or both conditions are true. In case of the alternative syntax, lazy evaluation is used. That means that if left operand is true,…
- random| | | |---|---| | | |
- roundRounds the provided value to the closest integer.
- sqrtReturns square root of x.
- toFixedConverts a number into a string, keeping the specified number of decimals. If the desired number of decimals is higher than the actual number, nulls…
- trueAlways true