Hi all!
Does Revo/If support double conditions?
I try this code:
[[if? &subject=`[[*parent]]` &operator=`!empty` &then=`
[[if? &subject=`[[!getField? &id=`[[*parent]]` &field=`hidemenu`]]` &operator=`empty` &then=`
<p><b>Back to</b> <a href="[[~[[*parent]]]]">[[getField? &id=`[[*parent]]` &field=`longtitle`]]</a></p>
`]]
`]]
So when the parent is not zero AND parent is not hidden, it should show up a link to it.
But for me, it shows this in broken code in the source:
[tt] [[if? &subject=`[[!getField[/tt]
(It doesn’t matter if I write the whole snippet call in one line.)
Any ideas?
ps. A workaround is to put the second condition in a new chunk, anyway I think it should work the presented way.