mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
adafc6dfc3
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@577 0fc631ac-6414-0410-93d0-97cfa31319b6
18 lines
557 B
Plaintext
18 lines
557 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
|