Hello,
You can achieve the mentioned functionality the following way using macros:
TrueValue – “(truevalue)<value>” – Output settings for the positive output of the comparisson
e.g. {%if (UserName == "administrator") { "Yes" } else { "No" }%}
writes Yes if the user is administrator
Another example:
<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%if (cmscontext.currentdocumentculture.culturecode == "en-US") { "Ok" } else { "NoOK" }%}")%>
writes OK if the current culture is en-US. For more information please see the following
link.
Best regards,
Boris Pocatko