check_option edit page

check for option in option list

Syntax

out = check_option(option_list,option)
out = check_option(option_list,option,type)
out = check_option(option_list,option,[],value)

Input

option_list cell array
option option name, string or cell array of alias names
type class name or cell array of class names, the option value is required to be of this class
value string the option value is required to be equal to

Output

out true / false

See also

get_option set_option find_option delete_option