We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14167
    • 55 Posts
    Hi Everyone,

    On my template I want to hide something from two pages (5,6) and I have tried:

    [[!If?
       &subject=`[[*id]]`
       &operator=`NEQ`
       &operand=`5,6`
       &then=`do something`
       &else=`do something else`
    ]]


    But it shows on both, can you only send one variable?
    Any help ideas on this welcome.
      Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2
      • 33968
      • 863 Posts
      Hi, you can achieve this using the ’inarray’ operator.

      Like this:
      [[!If?
         &subject=`[[*id]]`
         &operator=`inarray`
         &operand=`5,6`
         &then=`hide item`
         &else=`display item`
      ]]
      
        • 14167
        • 55 Posts
        Your a star... good job smiley
          Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2