Post your questions and help other users.
Moderator: Martin
-
Theowi
- Posts: 16
- Joined: 08 Jan 2015 11:45
Post
by Theowi » 14 Apr 2016 12:06
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...

-
Martin
- Posts: 4468
- Joined: 09 Nov 2012 14:23
Post
by Martin » 15 Apr 2016 19:36
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