Define/change a macro by if

 

I have this

input bool a=true;
input bool b=false;
If(a && b) #define result >
else if(a) #define result <
else if(b) #define result =
else #define result !=


then I want to use result like this

Print(5 result 3)

Is it possible?

 
pavelion:

I have this


then I want to use result like this


Is it possible?

You can't change how a macro is defined using inputs, macros are executed (or replaced in code) at compillation time

For that type of behavior just make it a function