value_if_exists (public, deprecated)

 value_if_exists var_name

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

Deprecated. Invoking this procedure generates a warning.

If the specified variable exists in the calling environment, returns the value of that variable. Otherwise, returns the empty_string. DEPRECATED: this proc does not respect OpenACS naming convention and can be replaced with a plain tcl oneliner.

Parameters:
var_name (required)
See Also:
  • plain tcl idioms

Testcases:
No testcase defined.
[ show source ]
Show another procedure: