2
Answers

Dynamic conditions

eddy uk

eddy uk

14y
3.4k
1
Hello.

I have a small software where i need to retrieve a conditional string from database and then check this condition in code.
For instance, i store in database string like this:

x>9&&y==1

In code, I want to replace x and y with values, for instance:
x=5
y=1

and then execute

if(5>9&&y==1)
   // do something

Anyone have an idea how to do so?

Thanks in advanced!

Answers (2)