What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Whats wrong with this (debuging will not open as well) :(...

Whats wrong with this (debuging will not open as well) :(...
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Whats wrong with this (debuging will not open as well) :(...
quote:
Originally posted by .2007
Were?
quote:
Originally posted by J-Thread
The only thing I see is that you're missing a closing bracket ( } ) of the function...
read underlined part carefully ;)

In most programming languages you always must enclose a group of statements with some sort of character or other start/ending statement.

In JScript, when you start a group of statements with "{" you always must close the group with "}".

To avoid such mistakes it is almost mandatory to properly indent each line of code so you can easly see where you're missing some starting/closing character.

quote:
Originally posted by Eljay
=== is a perfectly valid operator, it does the same thing as the == operator with the addition of checking the type of the two variables being compared. (which in this case is not really needed, but wont make any difference)
yes and no... It is the other way around...

When you use === no additional type conversions are done. It is with the use of == that extra stuff is done. Hence I would personally always use === wherever possible. And I see == as a special case of ===, not the other way around.

But you're right that in this case it wont make a difference in the outcome of the function since both are strings already.

So it is == which wouldn't be realy needed.

Ref: CookieRevised's reply to Nudges, Updated.

;)

This post was edited on 01-14-2007 at 06:37 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-14-2007 02:56 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Whats wrong with this (debuging will not open as well) :(... - by plus on 01-13-2007 at 09:15 PM
RE: Whats wrong with this (debuging will not open as well) :(... - by J-Thread on 01-13-2007 at 09:26 PM
RE: Whats wrong with this (debuging will not open as well) :(... - by plus on 01-13-2007 at 09:33 PM
RE: RE: Whats wrong with this (debuging will not open as well) :(... - by J-Thread on 01-13-2007 at 10:45 PM
RE: RE: Whats wrong with this (debuging will not open as well) :(... - by CookieRevised on 01-14-2007 at 02:56 AM
RE: Whats wrong with this (debuging will not open as well) :(... - by Eljay on 01-13-2007 at 09:56 PM
RE: Whats wrong with this (debuging will not open as well) :(... - by plus on 01-13-2007 at 11:47 PM
RE: Whats wrong with this (debuging will not open as well) :(... - by NanaFreak on 01-13-2007 at 11:51 PM
RE: Whats wrong with this (debuging will not open as well) :(... - by plus on 01-13-2007 at 11:56 PM


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