Check for key in input_select

Hi folks

I need to control certain behavior in a script with conditions.
How do I check if a given parameter, to a script, exist in an input_select?

I.e
Foo(bar)

“if bar in list do x”

2 Likes

Aha!
I tried state_attr, didn’t know the list was under ‘options’
Thank you :ok_hand: