Function: require_choice --Usage-- > require_choice(choices: some_strings, some_multiple_choice_value) Requre that ''at least one'' of the given choices is selected in a [[type:value#multiple_choice|multiple choice value]]. If non of the choices is selected, selects the first one. --Parameters-- ! Parameter Type Description | @input@ [[type:string]] Multiple choice value to look update. | @choice@ [[type:string]] Choice to require. | @choice1@ [[type:string]] Require multiple choices. | @choice2@ [[type:string]] ''etc.'' --Examples-- > require_choice(choice: "red", "red") == "red" > require_choice(choice: "red", "blue") == "blue, red" > require_choice(choice: "red", "red, blue") == "red, blue" > require_choice(choice1: "red", choice2: "green", "red, blue") == "red, blue" > require_choice(choice1: "red", choice2: "green", "red, green") == "red, blue" > require_choice(choice1: "red", choice2: "green", "green, blue") == "green, blue" > require_choice(choice1: "red", choice2: "green", "black, blue") == "black, blue, red" --See also-- | [[fun:exclusive_choice]] Require that ''at most one'' of the given choices is selected. | [[fun:require_exclusive_choice]] Require that ''exactly one'' of the given choices is selected. | [[fun:remove_choice]] Remove the given choices from a multiple choice value.