ID:173420
Jan 5 2004, 10:33 pm
|
|
Well, I haven't the foggiest when it comes to lists in this area. I want to have it select only the the first item in a list for me so I can do whatever I want with it afterwards.
|
Jan 5 2004, 10:35 pm
|
|
Aakjfhksdh[1]
|
In response to Garthor
|
|
But obviously you have to make sure that the length of the list is larger than zero, otherwise you'll get a nice runtime error if it's an empty or uninitialised list. =)
|
In response to Crispy
|
|
if(!list) return
Would work, correct? |
In response to Enigmaster2002
|
|
Enigmaster2002 wrote:
if(!list) return That will catch an uninitialized list, but not an empty one. For that you need if(!list || !list.len) instead. Lummox JR |