I need help to populate a single line field on input of a drop down field in a stateless form.

I need help to populate a single line field on input of a drop down field in a stateless form.

I am trying to populate a single line filed Called A1 on the input of a drop down field  called A with the following.....

  1. if (input.A  ==  "A.  15-20 minutes")
  2. {
  3. input.A1 = "1";
  4. }

  5. else
  6. {
  7. input.A1 = "0"
  8. }

It is not recognizing the selection.  How can I correct this.

Thanks for your help!