4 Replies Latest reply on Jun 21, 2017 1:03 PM by varuns44789478

    How to check if a flow contains a particular paragraph style?

    varuns44789478 Level 1

      The script iterates through a doc and works on changing conditional tags in it but it does not factor in whether the paragraph style is "Anchor" i.e. whether it contains an Anchored Frame or not. How can I use the flow object to check if the paragraph style is "Anchor" or if the paragraph contains an Anchored Frame or not?

       

      Working code is

       

      var flow = active.FirstFlowInDoc

              while(flow.ObjectValid())

              {

                  // need an if condition here before calling the changeCondTagInPgf function

                       changeCondTagInPgf(flow,active)

                  flow = flow.NextFlowInDoc

              }

       

      The script should only call the ChangeCondTagInFlow() function if the paragraph style is "Anchor" or if it is/contains an Anchored Frame.