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

 template::util::nvl value value_if_null

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

Deprecated. Invoking this procedure generates a warning.

Analogous to SQL NVL DEPRECATED: a plain Tcl oneliner can easily replace this proc

Parameters:
value (required)
value_if_null (required)
See Also:
  • expr {$value ne "" ? $value : $value_if_null}

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) template::util::nvl template::util::nvl template::util::nvl->ad_log_deprecated

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc template::util::nvl
    if {$value eq ""} {
        return $value_if_null
    }
    return $value
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: