::How about this: 
 A smple check for large American cities entered in a textbox with an instance name of "imput" 

 cities = new Array(New York,San Francisco,Los Angeles/*sp?*/,Las Vegas,Chicago); //Note:Arrays NEVER use quotes 
 var american:Boolean = false 
 for(x in cities) { 
      if(imput.text == cities[x]){//X refers to an item in an array, 0 is fuck, 1 is bitch, etc. 
             american; //same as goodBoy = false 
             trace("'"+ cities[x]+"' is a noted American city,Look on Wikipedia for info on it") 
      } 
 } 
 !american ? trace("Where is that?"); null //Same as if(goodBoy){trace("[[ditto]]")}//From an earlier edit