Nexus.Client.ModManagement.Scripting.XmlScript.CPL.CPLConverter.CplToCondition C# (CSharp) Method

CplToCondition() public method

Converts the given CPL into a ICondition.
Thrown if the given CPL is invalid.
public CplToCondition ( string p_strCplCode ) : ICondition
p_strCplCode string The CPL to convert.
return ICondition
		public ICondition CplToCondition(string p_strCplCode)
		{
			if (String.IsNullOrEmpty(p_strCplCode))
				return null;
			ITree astCPL = GenerateAst(p_strCplCode);
			return BuildCompositeCondition(astCPL);
		}