Hello Robert,
on 10-Jul-00 You wrote:
> How do I do this now?
Simply write Your own 'to-file :)
Okay, this may look like:
my-to-file: func [
"Converts to file value, skipping NONEs."
value "Value to convert."
/local block val
][
either block? value [
block: copy []
foreach val reduce value [
if not none? val [append block val]
]
either equal? 0 length? block [none] [to-file block]
][
either none? value [none] [to-file value]
]
]
Behaves like original 'to-file instead of returning none for each 'none "in" value:
>> my-to-file none
== none ; instead of %none
>> my-to-file ["test" none]
== %test ; instead of %test/none
>> my-to-file ["test" none "file"]
== %test/file ; instead of %test/none/file
But be aware of
>> file? my-to-file none
== false ; instead of true
HTH!
Regards
Christian
[EMAIL PROTECTED]