template::util::is_true (public, deprecated)

 template::util::is_true x

Defined in packages/acs-templating/tcl/util-procs.tcl

Deprecated. Invoking this procedure generates a warning.

interprets its argument as a boolean.

Parameters:
x - the value to test DEPRECATED 5.10.1: since October 2015 this proc is implemented via the standard Tcl idiom "string is true -strict ..." that can be easily inlined.
Returns:
0 if the variable can be interpreted as false; 1 for true if it can't.
See Also:
  • string

Partial Call Graph (max 5 caller/called nodes):
%3 packages/directory/www/index.tcl packages/directory/ www/index.tcl template::util::is_true template::util::is_true packages/directory/www/index.tcl->template::util::is_true ad_log_deprecated ad_log_deprecated (public) template::util::is_true->ad_log_deprecated

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc template::util::is_true
    #expr {[string tolower $x] ni {0 f false n no off ""}}
    string is true -strict $x
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: