Page 1 of 1

Multi Choice With Condition

Posted: 14 Apr 2016 12:06
by Theowi
Hey There

I please need assist with the following

I made an Input Multi Choice Dialog but now i want to know how to make with the expression condition to say if its true or not....
example (If your choice was "Mtn" then the value should be true) it seems so simple but i am having trouble with it... :?:

Re: Multi Choice With Condition

Posted: 15 Apr 2016 19:36
by Martin
Hi,

The action Input Dialog provides a variable called value that contains the list of selected values. For example, when you create a dialog with choices a,b,c,d and the user select a and b, the variable will contain a list with values a and b.
The script in a condition Expression could look like this to check if the list contains the value b: containsElement(value, "b")

Regards,
Martin