Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use a number constant, just use the number itself, for example 12000 or 42.86.

...

Text

You will need this for certain functions. Strings Texts cannot be used to calculate something. To make a stringtext, use single quotes , for example ‘this is a string’text’ or 'causes’.

Fields

You can use any custom field of type number, or text fields that contain a number. JSU converts texts that only consist of a number to a number type.

...

Operator

Description

Example

+

Addition: Adds the two values.

12 + Quantity

-

Subtraction: Subtracts the second value from the first.

15 - Rating

*

Multiplication: Multiplies the two values.

Result * Factor

/

Division: Divides the first by the second value.

"Write off percentage" / 100

^

Potentiation: Raises the first value to the power of the second.

"Square length" ^ 2

%

Percentage: As on a calculator, you can add or subtract a percentage to/from a value.

Price - 10%

...

Parentheses

Parentheses can be used to group operations to override operator precedence. 2 * 3 + 3 equals 9, but 2 * (3 + 3) equals 12.

...