Help with template condition

I have a simple automation that will enable a input_boolean, however one of the conditions for the automation is for the outdoor temperature to be lower than a setpoint. The setpoint in this case is determined by an input_select. When i comment out this condition, the automation fires so I know my issue is with the code below. Any help or other workaround is appreciated. I’ve tried using the template editor with various combinations but nothing seems to work. Thanks!

  condition:
    condition: template
    value_template: '{{ states.input_select.economizer_setpt > states.sensor.pws_temp_f }}'

I think it needs to be …

states.input_select.economizer_setpt.state > states.sensor.pws_temp_f.state

Man I feel like an idiot. That was it! Thank you very much