var DEST_VALUE = 1
var APPDAYS_AFTER = 2
}
How can i check whether the variable holds some value or not. When i do this, it does not work…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Of course it doesn’t do anything, because in your example
DEST_VALUEresolves to true likeAPPDAYS_AFTER. Value that resolve to false when converted to a boolean in javascript are:if you write
you write “if
DEST_VALUEis not true do something” (in your case it does nothing). If you want to check if a variables hold a value: