
Announcements
How do we provide the list of values for the 'in' option in condition evaluation as below ?
Are there any formats ?
Hi @rlpatrao ,
Assume we have two variables: "FindMe" and "ListofValues."
"FindMe" variable is set to "red."
"ListofValues" variable contains a list of values: ["red", "black"]
Now, when we use the 'IN' operator in a condition, we're checking if the value of "FindMe" exists within the values of "ListofValues."
In this case, it checks if "red" (from "FindMe") is found within the values "red" and "black" (from "ListofValues"). If it finds a match, it can trigger a specific action or response, such as saying it found the value.
Following is the final output:
Let me know if it works for you. Following is the YAML:
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
displayName: Untitled
triggerQueries:
- condition
actions:
- kind: SetVariable
id: setVariable_8mcPfV
variable: Topic.FindMe
value: red
- kind: SetVariable
id: setVariable_5uqGYm
variable: Topic.ListofValues
value: [ "red", "black"]
- kind: ConditionGroup
id: conditionGroup_Rhfaim
conditions:
- id: conditionItem_iDb9LY
condition: =Topic.FindMe in Topic.ListofValues
actions:
- kind: SendActivity
id: sendActivity_P7Ttqe
activity: Found {Topic.FindMe}
elseActions:
- kind: SendActivity
id: sendActivity_cUclvW
activity: Sorry, couldn't find it.