public ConditionToCpl ( ICondition p_cndCondition ) : string | ||
p_cndCondition | ICondition | The condition to convert. |
return | string |
public string ConditionToCpl(ICondition p_cndCondition)
{
string strCPL = GenerateCpl(p_cndCondition);
if ((p_cndCondition is CompositeCondition) && (((CompositeCondition)p_cndCondition).Operator == ConditionOperator.Or))
strCPL = strCPL.Remove(strCPL.Length - 1, 1).Remove(0, 1);
return strCPL;
}