We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    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.
      • 31471
      • 206 Posts
      I forgot to mention my system environment.
      Now I’m running Revo rc-3 rev7083 and If 1.0 rc-1.