- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
OUTSTANDING! I had a little trouble with the var 'found' so I changed it slightly but the following code (almost completley based on your revisions) now works:
var Carlos = Array("first.last@domain.com","first.last@domain.com");
var Corey = Array("first.last@domain.com","first.last@domain.com");
var Ryan = Array("first.last@domain.com","first.last@domain.com");
var wasitfound = false;
for (var i=0; i<Carlos.length;i++ ){
if(email.rawValue == Carlos[i]) {
supemail.rawValue = "carlos@domain.com";
wasitfound = "carlos@domain.com";
}
}
if (wasitfound == false){
for (var i=0; i<Corey.length;i++ ){
if(email.rawValue == Corey[i]) {
supemail.rawValue = "corey@domain.com";
wasitfound = "corey@domain.com";
}
}
}
etc...
Views
Replies
Total Likes