How to use if else condition in FreeMarker

I am using 'Docx using Dynamic Template' smart service.

The document template which I am using inside it, I have to apply if-else condition in it (While clicking on 'Edit Field' by clicking on the field) like:

if a == 'x' b 

Please help me with the correct syntax.

  Discussion posts and replies are publicly visible