I will have a String like
('abc' != 'xyz' AND 'thy' = 'thy') OR ('ujy' = 'ujy')
The String will be able to have as many "AND" groups as it wants. There will not be any nested groups within the AND groups. All groups will ALWAYS be serparated by an OR.
I can just switch out the AND for &&
and OR for ||
.
What I would like is to pass this String into some type of eval method and output TRUE or FALSE.
Is there anything out there that can do this?