我的输入字符串是这样的:
FEES_1 > 100 AND FEES_2 <= 200 OR FEES_3 <= 500
我需要迭代单个条件,我想知道哪个是分隔每个条件的条件运算符。
预期输出:-
Iteration 1:
Operands: [FEES_1 , 100 ]
Relational Operator: >
Conditional Operator: null
Iteration 2:
Operands: [FEES_2 , 200 ]
Relational Operator: <=
Conditional Operator: AND
Operands: [FEES_3 , 500 ]
Relational Operator: <=
Conditional Operator: OR
现在我可以找到Operands并Relational Operator使用上面链接中给出的答案。但是我怎样才能找到Conditional Operator并以上述格式打印呢?
潇潇雨雨
噜噜哒
相关分类