ID:173420
 
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.
Aakjfhksdh[1]
In response to Garthor (#1)
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 (#2)
if(!list) return
Would work, correct?
In response to Enigmaster2002 (#3)
Enigmaster2002 wrote:
if(!list) return
Would work, correct?

That will catch an uninitialized list, but not an empty one. For that you need if(!list || !list.len) instead.

Lummox JR