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,

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