[PD] Test if an argument is void

IOhannes m zmoelnig zmoelnig at iem.at
Mon Apr 9 16:19:14 CEST 2018


On 2018-04-09 15:29, Liam Goodacre wrote:
> If you don't mind using externals, you can use [iemguts/canvasargs] or [else/args]. I can't think of a way of doing this in Vanilla though. As you say, no argument seems to be indistinguishable from 0.

for a given argument, it's possible. e.g.:
(it's also possible to count the number of arguments, but more complicated)

https://lists.puredata.info/pipermail/pd-list/2012-09/097880.html

(the code has to be copied verbatim into your abstraction and cannot be
wrapped into a helper-abstraction)


fgasdmr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180409/395f2e85/attachment.sig>


More information about the Pd-list mailing list