Conditional Color
Hi I am working on NodeBox 3 and I am in love , i just work for
three days on it and it is just great.
I am trying to find how to color ellipses based on condition that
if the index is below 50 then color red else color green?
Is that possible?
Thank you in advance.
Marios
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
1 Posted by anonymous on 13 Jan, 2014 02:35 PM
I think it can be made with less nodes, but I hope it helps.
Support Staff 2 Posted by lievenmenschaer... on 14 Jan, 2014 11:41 AM
You can not refer to the index, but you can create a list of numbers matching your index. I've included an example that does that and that can be altered to complete other similar conditions.
In this case we have an amount of ellipses (160) where the first 50 are colored red, the other set colored green.
You could also have a look at the compare example in the examples browser under lists.
lievenmenschaert closed this discussion on 14 Jan, 2014 11:41 AM.