Files
MagicSetEditor2/doc/function/chosen.txt
T
twanvl dfae1b2729 Added count_chosen function;
Added I_DUP instruction

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1007 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 14:41:38 +00:00

21 lines
664 B
Plaintext

Function: chosen
--Usage--
> chosen(choice: some_string, some_multiple_choice_value)
Is the given choice selected in the [[type:value#multiple_choice|multiple choice value]]?
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] Multiple choice value to look in.
| @choice@ [[type:string]] Choice to look for.
--Examples--
> chosen(choice: "red", "red") == true
> chosen(choice: "red", "blue") == false
> chosen(choice: "red", "red, blue") == true
> chosen(choice: "blue", "red, blue") == true
--See also--
| [[fun:count_chosen]] Count then number of choices selected in a multiple choice value.