I am building an application which must interpret a set of instructions set by the user, instructions which will not be known until runtime.
I am achieving this by using the Evaluate function, as so:
Evaluate("5>4")
Which returns True, as one would expect. My question is how do I evaluate the following statement:
5 is greater than 4, but less than 10
I will be substituting the numbers with variables, of course.
I realise I could split the string into an array of two parts and test individually, but there must be a way of passing a single argument to test.