I see a lot of:
_v = _u getVariable "var"; if (format["%1", _v == "<null>") then { _v = 0; };
around. What are your opinions about:
#define GET_VAR_DEF( U, V, D) if (isNil {U getVariable #V}) then {D} else {U getVariable #V}
_v = GET_VAR_DEF( _u, var, 0 );
?
Thanks,
alef