MODSEL - SELECTIVITY MANAGEMENT IN ASYCUDA++ Ó UNCTAD - SITE (V1.15) 6.11 This example relies on looking up the List (also named "APPLES"), containing separate tables that in  this  case  list  the  targeted  Commodity  Codes  and  countries  of  origin.  The  Criteria  code  can specify a match on any one record in a table, on all, or on any combination. This  is  managed  by  the  choice  of  criteria  functions  used  such  as  InListTar(  ),  InListCty(  ), InListDec(  )  and  InListCom(  )  which  access  lists  of  CommCods,  Country  codes,  Declarant  codes and Company codes, respectively. The InListBoL( ) function is used to access the Bills of Lading lists. Functions, Keywords and Variables used within Criteria are listed in ‘Selection Criteria Syntax, but for an up to date list see the lookup lists from ‘Local Menu’ which is available in the criteria editing box of your current version of  MODSEL. In the above example, the Criteria looks for both the country "US" and the commodity "08081000" to be within the tables under the list "APPLES". Following is a further example of Local Criteria, which in this case looks in the List "TRACTORS". The  ASYCUDA++  Function  "InListAnd"  looks  for  a  match  against  each  table  within  the  list "TRACTORS", i.e. company code, declarant code, Commodity Code and country of origin. Example 3: Criteria "TRACTORS"; Num01 IS SuppUnits; If InListAnd( "TRACTORS" ) = Found Then   If Num01 > 0 Then     Num02 IS StatVal / SuppUnits;   Endif;   If Num02 < 3000 Then     RedLane IS 50;     YellowLane IS 50; Endif; If the condition is met (" If InListAnd("TRACTORS" ) = Found")  then  the  Criteria  tests  the calculated unit value of the goods against a nominated unit value of 3000 currency units per tractor. Creating and Updating a List To  create  a  List,  opens  the  appropriate  ‘List   Category   Management’   window   ‘Functions’, ‘Selectivity management’, ‘Local list’, ‘Create’.  This opens the ‘List’ form window. Enter a ‘List category’  by giving it a code name or number and your description for the list which should  simply  explain  it’s  purpose.  Save  the  list  code  and  description  by  selecting   ‘OK’  and  this returns you to the previous screen. To add data to the lists under your new code select  ‘Update’. This opens the List form again and now you can edit the individual tables that make up the list as a whole. Moving into a list text box opens it for editing. The list boxes are arranged in columns and  ‘Insert’  and  ‘Delete’ controls are used to create or edit the list. For example, selecting  ‘Insert’  in the Declarant list box opens the   ‘Declarant  list  management’ window. You can enter the code for the declarant that you want to add to the list or press <F8> for a list of codes. The system displays the description (declarant name) which is with the declarant code that you have chosen. The other list boxes are accessed in exactly the same way. Codes within a List text box are easily deleted by highlighting the code that you wish to delete, and then selecting the ‘Delete’ button.