Board Thread:Support Requests - Getting Technical/@comment-4334693-20140809174631/@comment-2170536-20140810094046

Wingstrike,

In general wrapping expressions in #if statements is handy for ensuring clean output, but in the particular case you used your #if statement is unnecessary, as the #switch will already return a null string if it doesn't match any of the tests (since there is no default defined, and each test completely defines the entire output). Mor123's second and third examples, however, would definitely be more cleanly implemented with your #if wrapper since they will produce a partial output if the parameter isn't defined.

Your point about #lc is also a good one as well.