Hello,
Ternary operator inside Xtend is supported? I am getting an error "throw new Error("Unresolved compilation problems:"
+ "\nno viable alternative at input \'?\'"
+ "\nno viable alternative at input \'\"STD_ON\"\'"); "
#define CANSM_DEV_ERROR_DETECT « (instanceCanSM.canSMGeneral.canSMDevErrorDetect == true) ? "STD_ON" : "STD_OFF" »
If I write in a normal way then it works as expected
#define CANSM_DEV_ERROR_DETECT « if (instanceCanSM.canSMGeneral.canSMDevErrorDetect == true) {"STD_ON"} else{"STD_OFF"} »
Best Regards,
Hemal Bavishi