if-then-else conditional:
if-then-else
{{if|test=non-empty|then=yes|else=no}}
gives yes
yes
{{if|test=|then=yes|else=no}}
gives no
no
Yanked from WikiMedia.