Add lists (MEMORY ERRORS)
This commit is contained in:
14
tests/list.grnd
Normal file
14
tests/list.grnd
Normal file
@@ -0,0 +1,14 @@
|
||||
# A cool list
|
||||
setlist &favWords "hello" "there" "general" "kenobi"
|
||||
println $favWords
|
||||
|
||||
set &count 0
|
||||
set &passedThrough true
|
||||
|
||||
@jmpbck
|
||||
getlistat &favWords $count &tmp
|
||||
println $tmp
|
||||
add $count 1 &count
|
||||
getlistsize &favWords &tmp2
|
||||
inequal $count $tmp2 &tmp3
|
||||
if $tmp3 %jmpbck
|
||||
Reference in New Issue
Block a user