I am trying to use a Block if statement to control whether something displays or not. The following statement works perfectly:
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%20%21%3d%20%22Log%20Splitters%20and%20Saw%20Horses%22" >
<actinic:variable name="SectionFragmentList" />
</actinic:block>
The code in the block translates to:
<actinic:variable name="SectionName" /> != "Log Splitters and Saw Horses"
The following statement also works perfectly:
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%20%21%3d%20%22Hedgetrimmers%22" >
<actinic:variable name="SectionFragmentList" />
</actinic:block>
The code in the block translates to:
<actinic:variable name="SectionName" /> != "Hedgetrimmers"
The effect of this code, in the first instance, is that everything is displayed unless the Section Name is Log Splitters and Saw Horses and in the 2nd instance, everything is displayed unless the Section Name is Hedgetrimmers.
What I want to do is "OR" the 2 statements together so that everything is displayed unless the Section Name is "Log Splitters and Saw Horses" OR it is "Hedgetrimmers".
I have tried every permutation I can think of, but without success. As soon as I try to OR them together, everything is is let through including Log Splitters and Saw Horses and Hedgetrimmers.
What am I doing wrong please? Help!
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%20%21%3d%20%22Log%20Splitters%20and%20Saw%20Horses%22" >
<actinic:variable name="SectionFragmentList" />
</actinic:block>
The code in the block translates to:
<actinic:variable name="SectionName" /> != "Log Splitters and Saw Horses"
The following statement also works perfectly:
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%20%21%3d%20%22Hedgetrimmers%22" >
<actinic:variable name="SectionFragmentList" />
</actinic:block>
The code in the block translates to:
<actinic:variable name="SectionName" /> != "Hedgetrimmers"
The effect of this code, in the first instance, is that everything is displayed unless the Section Name is Log Splitters and Saw Horses and in the 2nd instance, everything is displayed unless the Section Name is Hedgetrimmers.
What I want to do is "OR" the 2 statements together so that everything is displayed unless the Section Name is "Log Splitters and Saw Horses" OR it is "Hedgetrimmers".
I have tried every permutation I can think of, but without success. As soon as I try to OR them together, everything is is let through including Log Splitters and Saw Horses and Hedgetrimmers.
What am I doing wrong please? Help!
Comment