Let me comment further on what Brenda already mentioned.
> One of our users wants to set the background color of a text control
> based on some logic that depends on two other independent parameters.
Whenever you have a property that needs to be driven by more than one
parameter, you'll need to use a derived parameter. The challenge is to
combine the pair into an equation that can used by the dynamics system
to get the desired results.
> Assuming we go with a separate derived parameter, other than making a
> big if/then/else statement, is there a better way to do this?
There are many ways to do this.
Actually you can combine the two parameter's value into a unique
single value. At that point you can then check the value un the
dynamics.
For instance: param1 * 1000 + param2
Once you have a derived parameter with the above equation you can drop
this into the background color property and then build a range dynamic
set. From 1000 to 1099 is black, 1100 to 1150 yellow, and so on. Make
sense?
Another option is to simply drive this equation into an interpolate1d
function and simply return the desired color
Interpolate1d( param1*1000+param2, "1099,0x000000,1150,
0xFF00FF, ........
As you mentioned, you could also create a large IfThen statement and
simply return the color. That might be easier to read and edit.
Hope this helps,
Jim
>