checking if a list is empty.

BlitzMax Forums/BlitzMax Beginners Area/checking if a list is empty.

ckob(Posted 2006) [#1]
Ok my first question how do we check a Tlist to see if it contains anything? My second is are there any documentation on Tlist and all the little things I can do with it? the blitzmax docs as you know are still lacking to say the least.


tonyg(Posted 2006) [#2]
Modules / Lists / ListIsEmpty or use method isempty.
It also lists the functions you can use.
There are tutorials in the tutorials forum which cover lists and they're uses. In particular Beginners guide to BlitzMax


ckob(Posted 2006) [#3]
thanks.


Cruis.In(Posted 2006) [#4]
if listisempty(list)
then fill it
end if