Hi,
I tried to create a filter (eg if x>300 then ... ) using a "compare" node but its output is just "true/false". I need a numerical output as in the example before, just the number smaller than 300. so how to achieve it?
regards,
matteo
The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.
NodeBox 3From the old forum
Hi,
I tried to create a filter (eg if x>300 then ... ) using a "compare" node but its output is just "true/false". I need a numerical output as in the example before, just the number smaller than 300. so how to achieve it?
regards,
matteo
Hi Matteo,
add a multiply node afterwards. It will multiply with 1 (true) or 0 (false).
example file added
regards,
Lucas
Thank you lucas, is there any way to save the false values (i.e. if x>300 then paint in red else color i blue)
In you example, the "false" values are transformed in zero.
matteo
Il giorno 09/ago/2013, alle ore 00:03, "lucasnijs" tender2+d01b35a7bfc6927e253dfa4a71acfcae6ad890d4b@tenderapp.com ha scritto:
Why did you not say so immediately? ;-)
here is a sample that colors a rect blue (if the number is smaller then 300) and else red.
best,
Lucas
:)
thank you :)
matteo
Il giorno 09/ago/2013, alle ore 10:17, lucasnijs tender2+d01b35a7bfc6927e253dfa4a71acfcae6ad890d4b@tenderapp.com ha scritto: