149
rated 0 times
[
152]
[
3]
/ answers: 1 / hits: 105303
/ 15 Years ago, thu, april 2, 2009, 12:00:00
i feel like im trying to do something super simple, but just being stupid about it.
all i want to do is see if a variable has been set previously, and if it has NOT, set it with a default value....here is a sample:
if(!embed_BackgroundColor) {
var embed_BackgroundColor;
embed_BackgroundColor = #F4F4F4;
}
so, once you stop laughing at my code....WHY is it overwriting the variable no matter what?
please save my nerves;)
More From » variables