I just want to do something like this:
If you're using freemarker 2.3.23 or newer, you can use the then built-in:
If you're using an older version of freemarker, you can use instead the string built-in:
When applied to a boolean, the string built-in will act as a ternary operator.
string