[REBOL] Apparent newbie question
From: Steven::White::ci::bloomington::mn::us at: 20-Nov-2003 11:28
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"
]
*_*_*_*_*_ Result of running test script *_*_*_*_*
>> do %lentest.r
Length of TEST-BLOCK is 4
** Script Error: Expected one of: block! - not: integer!
** Where: halt-view
** Near: if length? TEST-BLOCK < 4
>>
*_*_*_*_* End of test results *_*_*_*_
Steven White
City of Bloomington
1800 W Old Shakopee Rd
Bloomington MN 55431-3096
USA
952-563-4882 (voice)
952-563-4672 (fax)
[steven--white--ci--bloomington--mn--us]