check for string value of session variable

Hi.

Is there a problem with the if syntax below?

(having previously set the value of the STATUS variable to either "ON" or "OFF")

if (session.getv("STATUS") == "ON"){

     .. do this;
     .. and do that;   
                       
}

You would need to if

You would need to

if (session.getv("STATUS").equals("ON"))
{
  action1;
  action2;
}