[as]loop out

After discovering this php loop


//ARRAY LOOPING EXPERIMENT BASED ON FOUNDATION FLASH PHP SCRIPT.
/*
// Now we loop through each entry in our arrays looking for a valid match
    for ($count = 0; $count < count($usernames) && $matchFound == false; $count++) {

        // If username and password matches entry...
        if ($username == $usernames[$count] && $password == $passwords[$count]) {

            // Get the user's message and indicate we've found a match
            $message = $messages[$count];
            $matchFound = true;
        }
    } 
*/


I’m attempting to do the same with AS, running into undefined


matchfound = false;
var message = new Array("Fun", "Love", "Laugh");
var user = new Array("Alice", "Shelia", "Cathy");
var pass = new Array("Disco", "Tango", "Samba");
for (var i = 0; i<user.length && matchfound == false; i++) {
	if (users == user*&& password == pass*) {
	}
	trace(users*);
}

Can I do this?