stop if not in

stop_if_not_in(var, list, msg)

Arguments

var

Name of var to check

list

list of acceptable options

msg

the warning message to display