Simple function to process "IF" statement in Delphi
$30-250 USD
Paid on delivery
Hi all!
I need a simple a function (ProcessIF) in Delphi that accepts a string starting with "_IF_". The function returns if the conditional expression is TRUE or FALSE.
ProcessIF("_IF_ test == test") // returns TRUE
ProcessIF("_IF_ hello == hello || hi == hi") // returns TRUE
ProcessIF("_IF_ test == hello || hello = temp") // returns FALSE
ProcessIF("_IF_ hi == hi && RGB == RGB) // returns TRUE
The expressions accepted are the same logic operators as in C/C++: ||, &&, >, 4 && 4 < 6) && (test != hello)") // returns TRUE
If you have any questions, let me know please.
Thanks,
A.
Project ID: #3985836