Set Variable

Sets a value for the variable. Variables can be used as temporary storage for some information. As a value for a variable it may be any data: a value from Sugar Field (output from Get Entity Attributes/Get Attribute Data), computed data (Math operations), values set directly in the flowchart with Constants, whole entity, table, structure, array, Boolean, or empty value (empty string or NULL)

Note: value in variable ‘lives’ within flowchart run and cannot be passed from one flowchart to another one.

The most common cases to use variables are:

  1. to get some value that is set within the loop (as it is not possible to get any values directly from a loop outside form it) 
  2. when some value is set based on condition – to merge several flows into one

inputs:

link or specify directly in the operator the name of the variable. It must be unique within the flowchart.

Variable names are case-sensitive. Var and var are two different variables.

  • Required: yes

value – link with the value for this variable. It is a best practice to empty a variable prior to setting the actual value to it.

  • Required: yes

outputs:

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *