+ 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'))}