471,859 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,859 software developers and data experts.

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 1062
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
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.