wp_only_if condition text { elsetext " " }
If condition, returns text; otherwise returns elsetext.
Source code:
if [uplevel expr "{ $condition }"] { return $text } else { return $elsetext }