Go Back   Ultimate Web Site Drop Down Menu Forum > Search Forums
Register FAQ Members List Calendar Today's Posts

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: bcarl314
Forum: Javascript 09-01-2007, 07:22 PM
Replies: 0
Views: 25,392
Posted By bcarl314
assigning default values to undefined variables

I'm moving from php to JavaScript. What I want to do is assign a value to a variable only if the variable hasn't been assigned yet. In php it would be: if($variable=='') $variable='default...
Showing results 1 to 1 of 1

 
Forum Jump

All times are GMT. The time now is 04:36 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.