Jump to content

Is there a way to make an if statment for something undefined?


horseatingweeds

Recommended Posts

I have a function for converting state codes into names. However, some state codes I don't know of and the way I have the input allows people to put in a state. So, I was wondering if a variable, in this case a state code, is inputed into the function that turns up undefined I can have a statement to handle it and basically have it ignored and printed as the person typed it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.