Simple function to process "IF" statement in Delphi

Cancelled Posted Nov 26, 2012 Paid on delivery
Cancelled 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.

Delphi

Project ID: #3985836

About the project

Remote project Active Nov 26, 2012