exists_and_equal (public, deprecated)

 exists_and_equal varname value

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

Deprecated. Invoking this procedure generates a warning.

Returns 1 if the variable name exists in the caller's environment and is equal to the given value. DEPRECATED: the value provided by this proc is arguable, as it can be replaced by a plain tcl oneliner.

Parameters:
varname (required)
value (required)
Author:
Peter Marklund
See Also:

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc exists_and_equal
    upvar 1 $varname var

    return [expr { [info exists var] && $var eq $value } ]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/deprecated-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: