For NeonG4. I substituted parentheses for angle brackets in your example, just to make the strings a little easier to parse (since < and < are already special symbols). Format examples: ([2]>[5]) (([2]>[5])or([5]>[2])) ((([2]>[5])or([5]>[2]))and([1]=[1])) (((([2]>[5])or([5]>[2]))or([1]=[2]))and([2]<[4]))