I have a script in which I save my if conditions in the database as a string. For instance:
String condition = "(([age] >= 28) && ([nationality] == 'US'))";
OR
String condition = "([age] >= 28)";
Now I want to evaluate that the user enters the condition syntactically correctly. This is an example of incorrect syntax:
String condition = "(([age] >= 28) && ([nationality] == 'US')";
String condition = "[age] >= 28)";
Like ours in the Evaluate Query Expression. Perhaps you can use an expression. But how? Need help in this regard.
Mehdi source
share