0 Replies Latest reply on Apr 11, 2013 4:15 AM by frameexpert

    Boolean Condition Expressions

    frameexpert Level 4

      Unlike Condition Formats, Paragraphs, etc., Boolean Condition Expressions are apparently not stored in a linked list. In ExtendScript, you can get a list of the Expression names with this:

       

      var doc = app.ActiveDoc;
      var exprCat = doc.GetBuildExprCatalog();
      

       

      This gives you an array of strings containing the Expression names. I am not sure what the FrameScript or FDK equivalents are, but I assume there is a way to do this.

       

      Once you have the list, you can get each definition by doing this:

       

      for (var i = 0; i < exprCat.length; i += 1) {
          var expr = doc.GetBuildExpr (exprCat[i]);
          Console ("Name: " + exprCat[i] + " Definition: " + expr); 
      }
      

       

      I hope this will helpful to someone in the future. Please let me know if you have any questions or comments. Thank you very much.

       

      Rick