Function: chosen

Function: chosen


 chosen(choice: some_string, some_multiple_choice_value)

Is the given choice selected in the multiple choice value?


Parameter Type Description
input string Multiple choice value to look in.
choice string Choice to look for.


 chosen(choice: "red",  "red")        ==  true
 chosen(choice: "red",  "blue")       ==  false
 chosen(choice: "red",  "red, blue")  ==  true
 chosen(choice: "blue", "red, blue")  ==  true

See also

count_chosen Count then number of choices selected in a multiple choice value.