[%- # ------------------------------------------------------------------ # return macro... ignore me. # ------------------------------------------------------------------ MACRO ret(str) PROCESS ret_block s=str; BLOCK ret_block; s; STOP; END; # ------------------------------------------------------------------ -%] [%- # ------------------------------------------------------------------ # RULES # ------------------------------------------------------------------ IF type == ex_types.SEARCH_TOO_LARGE; ret("Search term is too broad, please narrow your search"); END; IF type == ex_types.UNKNOWN_BARCODE; ret("Barcode does not exist in the database"); END; IF type == ex_types.DUPLICATE_INVALID_USER_BARCODE; ret("Barcode is a duplicate or is not valid"); END; IF type == ex_types.DUPLICATE_USER_USERNAME; ret("Username is a duplicate"); END; -%]