Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

Script to Apply Conditional Tag based on Paragraph Tag?

$
0
0

I use conditional tags to apply automatic updates to headers and footers using variables. The conditional tag is applied to a paragraph based on what the paragraph tag is. The condition displayed is dependent upon where it is located in the hierarchy. For instance, let's say the RED conditional tag is higher than the BLUE conditional tag, which is higher than GREEN conditional tag. I apply the RED conditional tag to the paragraph that has the Red paragraph tag applied.

 

Could I use a script to search for the paragraph tags (e.g., Red, Blue, Green)  and apply the corresponding conditional tag? I would also want to ensure that no other conditional tags are applied to any of the text in each paragraph. Any and all help is appreciated. Thank you in advance!

 

Example:

RED

 

 

(Red) This paragraph uses the Red paragraph tag and has the RED condition applied.

(Blue) This paragraph uses the Blue paragraph tag and has the BLUE condition applied.

(Green) This paragraph uses the Green paragraph tag and has the GREEN condition applied.

 

RED

Viewing all articles
Browse latest Browse all 888

Trending Articles



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