kentico_borisp
-
1/27/2010 10:23:36 AM
RE:Reverse a Macro value
Hello,
The simplest way would be tu use the equals/notequals parameter. Please find an example bellow:
Returns true if the culture is en-US:
<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%cmscontext.currentdocumentculture.culturecode|(default)(equals)en-US%}")%>
Best regards, Boris Pocatko
|