if then
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
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by lucasnijs on 08 Aug, 2013 10:02 PM
Hi Matteo,
add a multiply node afterwards. It will multiply with 1 (true) or 0 (false).
example file added
regards,
Lucas
2 Posted by Matteo Moretti on 09 Aug, 2013 06:46 AM
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" <[email blocked]> ha scritto:
Support Staff 3 Posted by lucasnijs on 09 Aug, 2013 08:17 AM
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
4 Posted by Matteo Moretti on 09 Aug, 2013 01:02 PM
:)
thank you :)
matteo
Il giorno 09/ago/2013, alle ore 10:17, lucasnijs <[email blocked]> ha scritto:
Frederik De Bleser closed this discussion on 15 Aug, 2013 07:23 AM.