Help with logic in rule

I have a tile on my dashboard that displays the pool temperature. The pool is closed for the winter right now. So I wanted to either display something else here or display something to indicate that the pool is closed.

Coming from Hubitat I have PoolTemp, and PoolClosed (on/off).

I thought to create a variable call PoolTempDisplay and then set it conditionally to PoolTemp every time it changes if PoolClosed is off - but I couldn’t figure out how to do this with rule editor.

Any thoughts on how to do this would be great - there may be more than one. Thanks.

@simon, how about something like this? Assume the PoolTemp and PoolClosed are devices from Hubitat, and the key is to use the context variable when setting the $PoolTempDisplay variable value.