Template:If


{{if|test|success|failure}}
If test is not nothing, returns success, else returns failure. (Basically check if a string is not empty).

{{if|hello|Hello there!|Goodbye}}
>Hello there!

{{if||Hello there!|Goodbye}}
>Goodbye

Most useful for using in combination with templates.