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 (required)
- 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):
- 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 $xXQL Not present: Generic, PostgreSQL, Oracle