Skip to Content
0
Jul 25, 2016 at 11:55 AM

Dynamic IF - if (lv_condition)

2091 Views

Hi mates,

i have a configuration table where i'll read some values like Contains, Contains Any, Begins With, etc...

now i want to construct an if statement based on that table entries like:

CONCATENATE var_1 var_operator var_2

INTO lv_condition SEPARATED BY space.

and then use:

if (lv_condition)

in this case, somthing like "if (var_1 CA var_2)."

is it possible? Simple?

Maybe i'll have to quit this solution and try case/endcase...

any help would be great.

thanks!