[PD] Testing for empty creation args?
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Oct 14 13:56:54 CEST 2008
Frank Barknecht wrote:
> Hallo,
> Bill Gribble hat gesagt: // Bill Gribble wrote:
>
>> I am doing something like this:
>>
>> |loadbang|
>> |
>> |symbol $1|
>> |
>> |readfile $1 cr, rewind(
>> |
>> |textfile|
>>
>> There's also an interface to set the filename later.
>
> Use this instead:
>
> [list append $1]
> |
> [select 0]
> | \
> [nofile( [s $0-FILENAME]
> |
> [s $0-FILENAME]
since this does not differentiate between no args and "0", i prefer the
attached version (too complicated for ascii art)
fmgasdr
IOhannes
>
> Ciao
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testarg.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20081014/b17f1e70/attachment.asc>
More information about the Pd-list
mailing list