[PD] default abstraction argument(s)

Federico xaero at inwind.it
Thu Dec 16 08:53:18 CET 2004


On Thu, 16 Dec 2004 08:07:16 +0100
Frank Barknecht <fbar at footils.org> wrote:

> > but if i omit $2, the float's value is 0 and not 1.
> > how to test if a creation parameter was specified?
> 
> You test, if it's 0! 
> 
>   loadbang
>   |
>   [f $2]
>   |
>   [select  0]
>   |         |
>   [default( |
>   |        /
>   [s something]
> 
> Replace "default" with your default.

in this case, if i specify 0 as second argument, internally i get
[default-value] instead of zero.
inn other programming languages, you can test $2 against a null val, or
you can check the argument count...

thanks.
Federico




More information about the Pd-list mailing list