What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Determining Empty variables

Determining Empty variables
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Determining Empty variables
code:
var myVariable;

if ( typeof myVariable === 'undefined' ) Debug.Trace ( 'Your variable is empty' );
else Debug.Trace( typeof myVariable );

Each variable has a "type" if the variable is empty it will be undefined.

This checks if the veriable has been initialized as a specific type. Mattike's post is more correct

This post was edited on 04-28-2008 at 04:16 PM by matty.
04-28-2008 01:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Determining Empty variables - by le-foot on 04-28-2008 at 10:36 AM
RE: Determining Empty variables - by Skarbo on 04-28-2008 at 10:41 AM
RE: Determining Empty variables - by matty on 04-28-2008 at 01:20 PM
RE: Determining Empty variables - by Matti on 04-28-2008 at 04:14 PM
RE: Determining Empty variables - by vikke on 04-28-2008 at 04:41 PM
RE: Determining Empty variables - by matty on 04-28-2008 at 05:55 PM
RE: Determining Empty variables - by John Anderton on 04-28-2008 at 06:00 PM
RE: RE: Determining Empty variables - by vikke on 04-29-2008 at 05:05 PM
RE: Determining Empty variables - by MeEtc on 04-28-2008 at 10:10 PM
RE: Determining Empty variables - by Stigmata on 04-28-2008 at 10:49 PM
RE: Determining Empty variables - by Matti on 04-29-2008 at 04:30 PM
RE: Determining Empty variables - by WDZ on 04-29-2008 at 05:46 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