On Mon, 13 Aug 2012, Pindar wrote:
I need to find out within a loop whether a matrix is empty or not,
e.g.:
<hansl>
nulldata 100
matrix test={}
loop i=1..20 -q
catch inv(test)
if $error
print "WRONG"
endif
endloop
<hansl>
Which is not working.
True, "catch" inside a loop needs some work.
But you can just use
if rows(test) == 0
# flag an error
endif
Allin Cottrell