/
3.3.9.1 Evaluate Control

3.3.9.1 Evaluate Control

Evaluate Control

Acts as a logical switch command. You can create multiple pins based on the number of outputs you require.

You have access to the entire msg object, by selecting custom. You can use {{ mustache tags }} on Custom Input, and with Evaluate. Refer, How to check for empty string in Flow studio

You can select any previous control and its corresponding value to work with. The best practice is to name each control; do not use the default name.

The pins refer to each of the switch cases respectively. The Default pin refers to the else case.

Custom input field

Customizes the input field to call any value from the msg object. You can create a condition with that value and set the appropriate pins to it.

 

While using the Evaluate node, anything that is enclosed within double quotes is considered a string. For example, == True matches a boolean value (0 or 1, the result of a logical expression )
where as, == ”True” matches with a string.

Video Content

https://cdn.orbita.cloud/assets/orbita/flowstudio/evaluatenode.mp4

Video Key Messages

  • The evaluate function takes a value calculated from a hook event and uses mustache tags to transform it into a number.  

  • Review this experience with a BMI Calculator hook event within an open-text chatbot.

Related Articles

Related content

3.3.9.2 Custom Control
3.3.9.2 Custom Control
More like this
3.3.4 Hook Event
3.3.4 Hook Event
More like this
3.3.9 Flow Studio Controls
3.3.9 Flow Studio Controls
More like this
Guide to Flow Studio
Guide to Flow Studio
Read with this
Function node
Function node
More like this
Lambda node
Read with this