MillTechNet
Technical User
I'm having a mental blank today so can someone help me with this please?
I have a database field that contains a string. It is of the format >2 or <=4 You get the idea I'm sure. It always has a comparison operator and a number.
Now, what I need to do is a simple "if" statement to check a variable against this content. So if the field contained "<=4" then the if statement should work out to be
if VariableX<=4 then
but I cannot figure out how to do this, since the "<=4" bit is in the database field and can obviously change.
Any ideas?
I have a database field that contains a string. It is of the format >2 or <=4 You get the idea I'm sure. It always has a comparison operator and a number.
Now, what I need to do is a simple "if" statement to check a variable against this content. So if the field contained "<=4" then the if statement should work out to be
if VariableX<=4 then
but I cannot figure out how to do this, since the "<=4" bit is in the database field and can obviously change.
Any ideas?