We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9550
    • 123 Posts
    how do I pass multiple values to an output filter. say I wanna check if a resource id :isnotequal to 27 or 17.

    I tried the following but no dice:

    [[*id:neq=`28,17`:then=``:else=`[[*pagetitle]]`]]

    I see AND/OR listed as output modifiers but not on the syntax...this also fails:

    [[*id:neq=`28`:or:neq=``:then=``:else=`[[*pagetitle]]`]]

    and so does this

    [[*id:neq=`28`:orneq=``:then=``:else=`[[*pagetitle]]`]]


    Buller?
      • 33968
      • 863 Posts
      Hi, I couldn’t get this working either but you could accomplish the same using the If snippet:
      [[!If? &subject=`[[*id]]` &operator=`inarray` &operand=`28,17` &then=`[[*pagetitle]]`]]
      


      I needed a bit more functionality so extended If to allow multiple conditions as well as the ’AND’ operator. Check it out: AndIf
      Switch is another useful one!
        • 9550
        • 123 Posts
        lucas: thanks man. worked perfectly!

        also, your modified snippet looks darn handy too. installed for later smiley