Switching label text between two parameters

Hi, I have parameters in my root and I have a label component which I'd like to display the value of those parameters in the label text. I would like the text to alternate between one value and another value at a fixed rate, essentially flashing between the two texts.

I've tried working with expression binding the two params and then using transforms scripts but thus far I can't get a solution.

Perhaps an expression binding like this:

if((toMillis(now(500)) / 500) % 2, {path.to.first.param}, {path.to.second.param})

Make the update pace for now() match the divisor.


That works amazingly! You wouldn't happen to have any ideas for more than two params?

Use case() instead of if(), and a larger modulus.