Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Boolean Condition Expressions

$
0
0

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


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>