Ok thank youvery very much for your suggestions, patience and hints!!!
I solved like this:
var popup = "";
if(type=="A"){
popup = "<b>"+nome+"</b>";
}
else {
popup = type;
}
thanks a lot again
On 4 Set, 13:18, Rossko <[email protected]> wrote:
> > var popup = if(type=="A"){"hello A"} else {"hello!"};
>
> Learn to use whichever browsers's error reporting.
> I get a straightforward syntax error on that line.
> Hint {"somestring"} is not valid javascript, you have to tell
> javascript what you want it to do with the string.
>
> http://www.w3schools.com/JS/js_if_else.asp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---