There can be any condition and symbol?
You can use a switch case if its only lessthan greater than and equals symbols and then verify the condition by splitting again on the identified operator…
Everything can be done until you know what are all the possible ways that you can get the condition
cheers