exactly what the topic says
because
var/T=list()
if(T==null) isn't working...
ID:266697
![]() May 26 2002, 8:58 pm (Edited on May 26 2002, 9:14 pm)
|
|
What Rcet said. The specific reason T==null doesn't work is because T != null, T == list(), and an empty list() is still something. Or at least, it's formatted nothingness.
|
Aah, that helps me a whole lot! I never knew lists had a len var. I used to say
var/somethingHere = 0 for(var/i in list) somethingHere = 1 if(somethingHere) ..() This makes thigns easier. |
<code> var/list/test = list() mob verb Test() if(!test.len) usr << "nothing in the list." else usr << "something in the list." Add() test += "testing" </code>
-Rcet