function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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