Hello,
Is there a functional way to use the (already available) switches in my own own code?
What I want to do is to store the Jii vector if it was actually the Jii around the CoM or an empty vector otherwise. However, when I use the code below the compiler does not seem to accept the AnySwitchVar for an #if statement, even tough in my own classes I’ve done similar things using string variables
(e.g. “#if Var == “On””)
Code:
#if JaboutCoMOnOff == On
AnyVec3 Jii = .AMSSeg.Jii;
#else
AnyVec3 Jii = {0,0,0};
#endif
Error message:
ERROR(SCR.SCN6) : <Myfile.any>: ‘JaboutCoMOnOff’: Unexpected character.
Kind regards,
Bart Koning