Hello,

I have the following JavaScript:

Code:
var ev_index = "001";

if (ev_index == "001")
  {
  return "hello";
  }
if the var ev_index does not = to 001 I want it to exit and not do anything.

at the minute it returns undefinded.

Does anyone know how to just exit the if statement without returning anything.

Thanks.