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
uzairuzair 

use of URLFOR based on condition

Hi All,

 

Is it possible to make use of URLFOR based on condition like given below

 

 

"{!URLFOR($Resource.Stylesheets, '{!IF(true, "images/red_bg.png","images/blue_bg.png" )}' )}"

 

 

If it is possible kindly provide a sample example.

 

Any help regarding this will be appreciated.

 

Thanks in Advance.

prageethprageeth

Try this;

 

{!URLFOR($Resource.Stylesheets, IF(true, 'images/red_bg.png', 'images/blue_bg.png'))}