These are some examples of valid expressions:
1 + 1
new Date(19, 07, 1990)
You can use expressions to make flows more flexible and intelligent by calculating and manipulating values on the fly, rather than defining the values ahead of time.
When a text field of a component’s settings has focus, a dropdown appears. This dropdown contains a list of:
- The flow’s steps and the data output by those steps
- Variables available within the context of the flow
If you select one of the items in the list, the following syntax appears in the field:
This syntax is another example of an expression. At runtime, FL0 evaluates this expression and replaces it with a value from a previous step in the flow or the value of a variable.
Expressions that refer to steps are made up of two parts:
- The name of the step or variable (e.g.
- The name of a property output by the step or variable (e.g.
Insert.data.age > 30
Insert.data.name.toLowerCase() === "david"
Note: You don’t typically need to write expressions that refer to steps or variables from scratch, but you may modify them, so it can be useful to understand how to read them.
If the output of a step or a variable contains an object, you can use dot-notation to access the value of a specific property:
You can use chaining to access the values of nested properties:
If the output of a step or a variable contains an array, you can use an index to access the value of a specific element:
Updated 6 months ago