public static str logicalOperator(List _expressionList, str _operator)
{
str rangeExpression = '';
int counter;
ListEnumerator listEnumerator = _expressionList.getEnumerator();
while (listEnumerator.moveNext())
{
counter++;
if (counter != _expressionList.elements())
{
rangeExpression += '(' + listEnumerator.current() + ') ' + _operator + ' ';
}
else
{
// Last element
rangeExpression += '(' + listEnumerator.current() + ')';
}
}
return rangeExpression;
}
No comments:
Post a Comment