MODSEL - SELECTIVITY MANAGEMENT IN ASYCUDA++ Ó UNCTAD - SITE (V1.15) 6.10 Defining the Criteria (system code) The   following   paragraph   contains   an   example   of   code   in   a   'Criteria'   editing   box,   in   this   case intended to select declarations covering fresh apples from the US. Example 1: Criteria "APPLES"; If ComCod = "080810" and CtyOrigCod = "US" Then   RedLane IS 100; Endif; This  selection  uses  two  criteria.  All  declarations  matching  CommCod  080810    AND  with  US  as country  of  origin  are  selected  100%  for  RedLane  processing.  To  extend  the  selections  to  other commodities or countries requires adding additional 'Criteria' code lines. This criteria syntax works in the same way as Taxation Rules. To simplify the maintenance of Local Criteria, the function  'Local List' can be used. See Appendix A of this Reference Document, ‘Taxation Management’ for further details on using Rules and Rules syntax. Descriptions of Selectivity keywords, functions and variables are in Selection Criteria Syntax. Using a List 'List' is a user defined lookup table that is used in conjunction with  'Criteria'. Two types of list can be used. One type of list is used with the Manifest system to enable Bills of Lading to be listed for inclusion in a selection criterion. When a declaration is input, the selection criteria checks to see if the Bill of Lading number is in the list, and if it is, then make the selection as directed by the criteria. The second type is more general and allows Companies, Declarants, Countries and CommCods to be listed for inclusion in a selection criterion. The   ‘List   category   management’   window   displays   a   simple   list   of   two   columns,   ‘Code’   and ‘Description’, like the example below: Code Description APPLES Misdescription of Apples AUS Select country of origin Australia TRACTORS Tractors from Japan The  content  of  any  list  can  cover  just  a  single  area  of  interest  or  can  be  very  broad,  covering  a range of selectivity requirements. The  example  for  the  selection  of  'APPLES',  (under  the  previous  topic  “Local  Criteria”),  specifies both the CommCod and country of origin within the Criteria code, i.e., If ComCod = "080810" and CtyOrigCod = "US" Then Using List the Criteria code can be written as follows: Example 2: Criteria "APPLES"; If InListCty("APPLES") = Found and InListTar("APPLES") = Found Then RedLane IS 100; Endif;