util_PrettyTclBoolean (public, deprecated)

 util_PrettyTclBoolean zero_or_one

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

Deprecated. Invoking this procedure generates a warning.

Turns a 1 (or anything else that makes a Tcl IF happy) into Yes; anything else into No DEPRECATED: this proc is not localized, does not comply with OpenACS naming convention and can be replaced by simple oneliner idioms based e.g. on expr command

Parameters:
zero_or_one (required)
See Also:
  • plain tcl idioms involving message keys

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc util_PrettyTclBoolean
    if {$zero_or_one} {
        return "Yes"
    } else {
        return "No"
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/deprecated-procs.xql

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