If I did something like
Code: Select all
/varset ShortName ${Me.Class.ShortName}
/if (${ShortName} == "NEC") |** with or without the quotes **|
It would seem there are at least 2 options I have found to compare strings; ${String.Equal[litteral - no quotes]} or to check to see if it is a member of a group with ${Select[${ShortName}, NEC, BLAH, ETC]}. Based on my checking macros, these are both not case sensitive. I believe I saw a case sensitive version with String.EqualCS (memory fails if I spelled that right atm). Just for completeness is there a case sensitive version of select or would you have to add an additional toupper or tolower equivalent to get it to work?
How hard would it likely be to put in ==, != overrides like C++ for objects other than ints?
Am I getting the syntax right or am I missing something?
Thanks in advance.


