We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36624
    • 535 Posts
    i try to ouput some div only if tv1 and tv2 are not empty and don't have a certain value inside.

    i know this work

    [[*tv1:isnot=`X`:and=`[[*tv2]]`:isnot=`X`:then=`Z`]] 


    but this don't

    [[*tv1:notempty:and:isnot=`X`:and=`[[*tv2]]`:notempty:and:isnot=`X`:then=`Z`]] 
    

    i'm wrong somewhere or i reach the limit of chaining modifiers ?

      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 33968
      • 863 Posts
      Maybe:
      [[*tv1:notempty:and=`[[*tv1]]`:isnot=`X`:and=`[[*tv2]]`:notempty:and=`[[*tv2]]`:isnot=`X`:then=`Z`]] 
      


      Might be more efficient rolling it into a snippet?
        • 36624
        • 535 Posts
        hey! nice idea but same result. At this point it become so tricky you are right, a little conditional snippet is the way to go. Thx for your answer.
          CTRL+SHIFT+U - Clear Cache
          CTRL+SHIFT+H - Hiding Heft Panel
          CTRL+SHIFT+N - Fast Create Resource
          CTRL+ALT+P - Preview Recource (in edit resorce window)
          CTRL+ALT+S - Save