The result of calculating the condition will be a Boolean value: True or False. If the result of calculating the condition is a value of some other type (string, number, list, etc.), then it will be cast to a Boolean type.
Slot operation
When the
@Conversation
passes through the
@Transition Rule
@Slot
, the truth of the expressions specified in the
@condition
@Subslot
s is checked from the upper
@Subslot
to the lower one;
The
@Conversation
will immediately go to the
@Script Branch
of the first
@condition
@Subslot
, the result of the expression of which will be TRUE; expressions in the lower
@condition
@Subslot
s will not be checked. For example, if the
@Context Variable
{{ username }} is a string and has the value “Ivan”, there will be a transition to the
@condition
@Subslot
@Script Branch
with the condition {{ username == 'Ivan' }} since this condition will be the first to be satisfied during the check.