+ Start a Discussion
robertcw777robertcw777 

escape double quotes in !IF

How do I embed double quotes inside a visualforce !IF statement? 


{!IF(l.Name=="Dallas Factory","google.maps.event.trigger(marker, "click");","")}

I get a missing ")" error when I put "click" in double quotes.

Help appreciated.
Satish_SFDCSatish_SFDC
You can use single quotes as well.
<pre>
{!IF(l.Name=='Dallas Factory','google.maps.event.trigger(marker, "click");','')}
</pre>

Regards,
Satish Kumar
robertcw777robertcw777
That worked. Thanks for quick reply!

RCW