static void tern_macro_test(Args _args) { #localmacro.tern if (%2) { %1 = %3; } else { %1 = %4; } #endmacro anytype value, firstValue, secondValue; boolean useFirst; ; useFirst = true; firstValue = 1; secondValue = 2; #tern(value, useFirst, firstValue, secondValue) info(strfmt("%1", value)); }