Skip to main content

MathUtil

This Script is part of the Common Scripts Pack.#

Runs the provided mathematical action on 2 provided values and produce a result. The result can be stored on the context using the contextKey argument.

Script Data#


NameDescription
Script Typejavascript
TagsUtility

Inputs#


Argument NameDescription
lhThe left hand parameter.
rhThe right hand parameter.
actionThe math expression (+, -, >, <, ==, *, /, %).
rhRegexThe regex used to filter only a specific part of the right hand argument.
lhRegexThe regex used to filter only a specific part of the left hand argument.
lhRadixThe radix for the left hand value. The default is 10.
rhRadixRadix for right hand value, defaults to 10
contextKeyThe path to store the result.

Outputs#


PathDescriptionType
MathResultThe result of the math action. This might be overriden by contextKey.Unknown