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
Sascha DeinertSascha Deinert 

Depending slds icon at visualforce page


I would like to insert a picture depending on the type at my visualforce page.
My code below does n't work, could you help me please.
<span class="slds-icon_container" style="background-color: #49648C;">
   <svg aria-hidden="true" class="slds-icon slds-icon_small">
      <use xlink:href="{!IF(wl.objectlabel = 'Event', {!URLFOR($Asset.SLDS, 'assets/icons/standard-sprite/svg/symbols.svg#event')}, 
                         IF(wl.objectlabel = 'Task',  {!URLFOR($Asset.SLDS, 'assets/icons/standard-sprite/svg/symbols.svg#task')},
                       }" />