kentico_davidb2
-
2/19/2013 6:49:44 AM
RE:Macros syntax for testing empty string
Hello,
by your requested result, I would suggest using:
{%if (callid != "empty") { "&callid=" } else { "" }|(default)empty%}{%callid%}
Please note that macro support is not the same across all 5.x versions.
I would also recommend upgrading to current version of Kentico CMS 7 as there is much richer macro support including custom K# syntax.
David
|