ad_page_contract_filter_proc_oneof (public)

 ad_page_contract_filter_proc_oneof name value_varname set

Defined in packages/acs-tcl/tcl/tcl-documentation-procs.tcl

Checks whether the value is contained in the set of provided values. Example spec: w:oneof(red|green)

Parameters:
name
value_varname
set
Author:
Gustaf Neumann
Created:
Feb, 2018

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) ad_complain ad_complain (public) ad_page_contract_filter_proc_oneof ad_page_contract_filter_proc_oneof ad_page_contract_filter_proc_oneof->_ ad_page_contract_filter_proc_oneof->ad_complain

Testcases:
No testcase defined.
Source code:
upvar $value_varname value

    if { $value ni $set } {
        ad_complain [_ acs-tcl.lt_name_is_not_valid]
        return 0
    }
    return 1
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: