Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello, I want to create state definition for my shape. but I am only be to define only two types. Please refer the following image. I want to define a style for a range of values. Eg - Green for 1, red for 0 and yellow for greater than 2
Solved! Go to Solution.
If just 0/1 yes String/Value
You only define for either 0 or 1 and the other one will be default
If you need to achieve
Green for 1, red for 0 and yellow for greater than 2
you can do it by using a String/Value state instead of a Numeric one.
Set the first state to String/Value 1 and the desired style
Set the second state to String/Value 2 and the desired style
Set the default state to the desired style
Hope this helps
Christophe
Use the check+ or if you already clicked the check use the Add to add an additional range cut off.
Correct, that is how it is intended.
Your state definitions for number ranges always has to be defined with the approach of
a < b <= c < default
the default state will be anything above the last state you define.
sorry correction you'll see it as
<a - State 1
<=b - State 2
<c - State 3
default
So you define the first cut off and anything below that will be 'state 1' etc.
If just 0/1 yes String/Value
You only define for either 0 or 1 and the other one will be default