0

How can i know if a list is empty or full without using the lenght function?

2nd Jun 2018, 8:02 AM
SlowFast
SlowFast - avatar
4 Réponses
0
check whether the first item exists... if yes, there is one or more items. if not, the list is empty...
2nd Jun 2018, 8:09 AM
Jiří Bočan
0
yes, but how do i know if that item exists?
2nd Jun 2018, 8:10 AM
SlowFast
SlowFast - avatar
0
if it does, there will be certain value stored. otherwise, it will be null, empty or nonexistent. depends on a language and type of values stored in the list...
2nd Jun 2018, 8:12 AM
Jiří Bočan
0
okey, thanks
2nd Jun 2018, 8:20 AM
SlowFast
SlowFast - avatar