Hi,
Does anyone know how to access the size of a variable in list form?
For example:
LET#list 120 125 125 125 1251 215 215 215 215 215 325 326
I need the size of the variable because I use it in a loop minus 1, as follows:
loop#i list-1
…
endloop
Thanks in advance!
try this
$ calculate list length by empty loop
loop#listlen list ; endloop
then
$ your loop
loop#i #listlen-1
...
endloop
Yes, that’s a good idea; it works very well.
thanks asiloisad
+prog template urs:7
head
LET#list 120 125 125 125 1251 215 215 215 215 215 325 326
loop#listlen list
txb #(#listlen,5.0)
endloop
end