#localmacro.select Select tableName where ... %1 join joinTableName where ... #endmacro static void Job(Args _args) { if (flag) #select(exists); else #select(notexists); while (tableName) { next tableName; } }