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):
- 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