util::coalesce (public)

 util::coalesce [ args... ]

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

Return the first nonempty argument, or the empty string if no argument is nonempty. Only the empty string is skipped; zero, false and whitespace are returned unchanged. All arguments are evaluated before this procedure is called.

Returns:
The first nonempty value, or the empty string.

Partial Call Graph (max 5 caller/called nodes):
Class ::xowiki::includelet::child-resources Class ::xowiki::includelet::child-resources (public) util::coalesce util::coalesce Class ::xowiki::includelet::child-resources->util::coalesce xowiki::includelet::child-resources instproc render xowiki::includelet::child-resources instproc render xowiki::includelet::child-resources instproc render->util::coalesce

Testcases:
No testcase defined.
Source code:
    foreach value $args {
        if {$value ne ""} {
            return $value
        }
    }
    return ""
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

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