Announcement

Collapse
No announcement yet.

How do i write an if statement for true/false variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do i write an if statement for true/false variables

    Hi,

    I've set-up a custom variable (FreeBatteries) which if i set to 'True' in my product properties, i want an image to be displayed.

    How do i do this?

    Cheers
    Angie

    #2
    You can do this for example:
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22FreeBatteries%22%20%2f%3e%20%3d%3d%20TRUE">
    	<img src="myimage.jpg">
    </actinic:block>

    Comment


      #3
      That's excellent, thank you. Worked a treat!

      Comment

      Working...
      X