7 Replies Latest reply on Oct 8, 2016 9:57 AM by tpk1982

    If visible, hide, else, show! …

    Obi-wan Kenobi Adobe Community Professional

      Hi all,

       

      Something wrong or not understood! 

       

      var myDoc = app.activeDocument;
      var myCondition = myDoc.conditions.itemByName("xxx");
      if (myCondition.visible = true) myCondition.visible = false;
      else myCondition.visible = true;
      

       

      Thanks in advance!

       

      (^/)