53
rated 0 times
[
55]
[
2]
/ answers: 1 / hits: 54024
/ 15 Years ago, wed, march 4, 2009, 12:00:00
I want to test whether a JavaScript variable has a value.
var splitarr = mystring.split( );
aparam = splitarr [0]
anotherparam = splitarr [1]
//.... etc
However the string might not have enough entries so later I want to test it.
if ( anotherparm /* contains a value */ )
How do I do this?
More From » javascript