[REBOL] Re: Apparent newbie question
From: lmecir:mbox:vol:cz at: 20-Nov-2003 19:03
> This must be something dumb, but I want to test the length of a block
> and can't seem to do it, yet I can print the length of the block. What
> am I missing?
> Thank you.
> *_*_*_*_* Sample script *_*_*_*_*
> REBOL [ ]
> TEST-BLOCK: [ XXXXXXXX YYYYYYYYY 100 200 ]
> print ["Length of TEST-BLOCK is " length? TEST-BLOCK]
> if length? TEST-BLOCK < 4 [
> print "block too short"
length? test-block < 4
is equivalent to:
length? (test-block < 4)
, while you wanted:
(length? test-block) < 4