ad_assert_arg_value_in_list (public, deprecated)

 ad_assert_arg_value_in_list arg_name allowed_values_list

Defined in packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl

Deprecated. Invoking this procedure generates a warning.

For use at the beginning of the body of a procedure to check that an argument has one of a number of allowed values.

arg_name - The name of the argument to check
allowed_values_list - The list of values that are permissible for the argument Deprecated: this proc can be replaced via very simple expr or if idioms
Returns 1 if the argument has a valid value, throws an informative error otherwise.
Peter Marklund

See Also:
  • native if or expr idioms

Partial Call Graph (max 5 caller/called nodes):

No testcase defined.
[ show source ]
Show another procedure: