ID:266697
 
exactly what the topic says

because
var/T=list()
if(T==null) isn't working...
This worked for me:
<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
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.
In response to Rcet
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.
In response to Lesbian Assassin
ya nothing this helps using lists alot easier and cleaner now :P Thank you 2