469,314 Members | 2,197 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,314 developers. It's quick & easy.

undefined

epots9
1,351 Expert 1GB
i'm just have alittle trouble bypassing some parts of my array that are undefined. Is there an if statement or a method i can use to ignore the undefined slots and focus on the populated slots only?
May 24 '07 #1
1 1032
Logician
210 100+
i'm just have alittle trouble bypassing some parts of my array that are undefined. Is there an if statement or a method i can use to ignore the undefined slots and focus on the populated slots only?
Expand|Select|Wrap|Line Numbers
  1.  if( myArray[subscript] != undefined )
  2.   { /*do something with the defined element*/ }
May 25 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Mike | last post: by
1 post views Thread by Codemutant | last post: by
1 post views Thread by Foolster41 | last post: by
13 posts views Thread by Don Vaillancourt | last post: by
4 posts views Thread by Chris Beall | last post: by
49 posts views Thread by matty | last post: by
3 posts views Thread by Michael Sgier | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.