If string is not inside this array

Without words, I need to ask it if this string variable is not inside this array

static var array = new Array("idk","hi");

function stuff(){
   var stringthing:String = "hello";
   if(stringthing != array[all of the strings]){ //If it does not equal any of the string objects inside 'array', or basically saying if "hello" is not inside array
    //Do stuff
   }
}

Don’t ever use the Array class. You can use IndexOf with a built-in array (it returns -1 if the item isn’t in the array), or Contains with a generic List (which returns false if the item isn’t in the list).