|
Pages: [1]
|
 |
|
Author
|
Topic: Comparing a string to (22) spaces (Read 376 times)
|
|
jfdutcher
|
The 'append' portion of this clip works fine.....I need to determine whether or not the piece of 'rec1' represented by the 'substr' is all spaces....in which case I don't need to append it to the block. I've tried many variations to create a test for that condition, none of which have passed muster as legitimate Rebol code....the current one included of course.
How can this be done ? allergys: make block! 3 ( j has been given a value outside this clip) space: ' ' for j 1 66 22 [ if (substr rec1 (y + j) + 117 22 > repeat space 22) [ append allergys trim substr rec1 (y + j) + 117 22 ] ]
|
|
|
|
|
Logged
|
|
|
|
|
Graham
|
Not sure what you're attempting here, but
empty? "--22spaces--"
should be true.
|
|
|
|
|
Logged
|
|
|
|
|
jfdutcher
|
Thank you Graham.....
Empty? passes muster very well .......
J.D.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |