Mathematical
  • Updated on 05 Nov 2019
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Mathematical

  • Print
  • Share
  • Dark
    Light

$.math()

Returns result of mathematical actions addition, subtraction, multiplication and division of constants and / or parameters.
Examples:

// Returns an amount qual to 22

    $.math(1+1)

// Returns the sum of parameters + 10

    $.math({{parameter_name}}+10)

// Returns the difference of two parameters

    $.math({{parameter_name1}}-{{parameter_name2}})

Example: addition of two parameters from task.

To test process example follow this:

  1. Go to Examples/Math function

  2. Make a copy of process
    math_copy_example

  3. In Addition of two parameters node it is formula specified $.math({{param1}}+{{param2}}) which result is saved to result variable
    math_select_node

  4. Go to View mode and press Add task button to send text task.
    math_add_task

  5. Select final node and and archive point in order to see working process result
    math_task_archive

Was this article helpful?