Click or drag to resize
MacroRuleTreeGetRuleCondition Method
Returns rule as a human readable sentence. If the expression is Rule(...) method than it uses XML for the rule, otherwise returns expression as it is.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 11.0.0
Syntax
C#
public static string GetRuleCondition(
	string ruleExpression,
	bool throwOnError = false
)

Parameters

ruleExpression
Type: SystemString
Rule expression to render.
throwOnError (Optional)
Type: SystemBoolean
If true, the process throws an exception in case of parsing error.

Return Value

Type: String
See Also