if (args.parmEnum() && args.parmEnumType() == typeId(NoYes) ) { if (args.parmEnum() == NoYes::Yes) { this.vendcalc(); } else { this.vendcalcInvoice(); } }