What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Only access to special emails..

Only access to special emails..
Author: Message:
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. Only access to special emails..
whats wrong in this

if(naam.indexOf("Jesper") != -1) and (naam.indexOf("EDB") != -1) {
                var strAccess = 1;
                }elseif(naam.indexOf("Willum") != -1) and (naam.indexOf("iLap") != -1) {
                var strAccess = 1;
                }else{
                var strAccess = 0;
                }

                if (strAccess == 1) {
                Messenger.MyPersonalMessage = "Citat af " + naam + ": " + Message.substr(7);
                }
07-06-2006 09:01 PM
Profile E-Mail PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Only access to special emails..
I found elseif does not work in Jscript. Change it to 'else if', containing a space :).
07-06-2006 09:03 PM
Profile PM Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: Only access to special emails..
it's &&, not 'and'.
The previous sentence is false. The following sentence is true.
07-06-2006 10:07 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Only access to special emails..
code:
if (naam.indexOf("Jesper") != -1) && (naam.indexOf("EDB") != -1) {
var strAccess = 1;
}else if(naam.indexOf("Willum") != -1) && (naam.indexOf("iLap") != -1) {
var strAccess = 1;
}else{
var strAccess = 0;
}

if (strAccess == 1) {
Messenger.MyPersonalMessage = "Citat af " + naam + ": " + Message.substr(7);
}

Should work
[Image: 1-0.png]
             
07-06-2006 10:24 PM
Profile PM Web Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Only access to special emails..
Nope.. it didn't work.. :(
07-08-2006 02:31 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On