Check if Variable Exists


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if(myVar == "" || myVar == undefined){
  2. //It has no value OR doesn't exist at all
  3. ...
  4. } else {
  5. ...
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.