The activity is quite complex … but basically I have many screens that use the same graph. The graph has many options and I would like to have a component that controls the values for some of those options.
What do you mean when you say “conditionally defined”? something like v = 5 { condition } …
In CL you can use “when condition result when condition result… otherwise result” to define pretty much anything. As long as there isn’t circular logic, it should work fine. It will stop at the first valid condition and return the result, so you do have to be careful sometimes.
value = 12
myVariable =
when value >= 0 "It's positive."
when x > 10 "It's larger than 10."
otherwise "It's negative."
The above for example will never return the second message.