It works like this:
{{#if:(some text that may or may not be empty)|(text to use if not empty)|(text to use if empty)}}
Thank you.