Deluge script: IF (condition) in On User Input is behaving oddly

Deluge script: IF (condition) in On User Input is behaving oddly

Since some days ago, most of my forms behave oddly when I use the "if" and "else" in On User Input, to show or hide fields. The application seems to completely ignore the condition and always executes the "else" part. I didn't change anything in these forms since a week ago, and everything was working completely right, so it's not an error made by me writing the script, I even reviewed the script and everything seems to be OK. This is one of these scripts:

  1. f((input.medio  ==  "Página Web"))
  2. {
  3.     hide funcion;
  4.     show tipo;
  5. }
  6. else
  7. {
  8.     hide tipo;
  9.     show funcion;
  10. }

In this case, it always execute the "else" part. I also tried:

  1. if((input.medio  ==  "Página Web"))
  2. {
  3.     hide funcion;
  4.     show tipo;
  5. }
  6. if((input.medio  !=  "Página Web"))
  7. {
  8.     hide tipo;
  9.     show funcion;
  10. }

In this case it executes the first "if", no matter which of both conditions is met.

iWhat can it be? The whole application is almost stuck because of this problem. I need help.