[REBOL] Re: none? ???
From: anton:lexicon at: 19-Apr-2002 15:39
Now you can see clearly what is wrong.
Your code is asking if a block is none.
A block is never none.
You could make it better by removing the enclosing brackets:
if not none? select grp tc [ ...
As Carl has pointed out below, that simplifies further.
You can think of the square brackets as "protecting"
their contents. The value of a block is just a block...
You must do something with the block before you will
get a value out of it. Either reduce it or do it or
pick a value out of it. You can put totally buggy code
into a block, and it won't cause a error until you try
to reduce that block or that bit of buggy code.
eg. This is a valid block:
Now I read your original post I think you want this:
if find grp tc [
print rejoin [ tc "-" first grp ]