Skip to main content
Known Participant
July 10, 2014
Question

Need expression for text marked with multiple conditions

  • July 10, 2014
  • 3 replies
  • 638 views

In FM 8 (Windows XP), how can you show a specific condition (A) when it is the only condition applied to a block of text? I have some text that has two conditions applied (A+B), and I want that text hidden.

I've tried different approaches in the Build Expression dialog box, but get an "Invalid expression" message no matter what I try. What I need Frame to do is "Show A NOT A+B."

We're going to newest version of FM later in the year, so if this cannot be done in FM 8, can it be done in the current version of FM?

Thank you for your help.

    This topic has been closed for replies.

    3 replies

    Gloria_McAuthor
    Known Participant
    July 10, 2014

    Thank you all very much for your replies. Winfried's approach worked. Sorry, Arnis, the others seem to be right about how the basic logic works. Simply telling FM to show A and hide B does not hide text that has both conditions applied. The ANDNOT expression Winfried provided does work, however. Thanks again!

    Arnis Gubins
    Inspiring
    July 10, 2014

    Sorry for any confusion - I was visualizing the AND logic truth table and thinking it was OR; Winfried and Lynne are absolutely correct. [That's what you get for not trying it out... ]

    Inspiring
    July 10, 2014

    Don't worry about it, Arnis. You're allowed a mistake once every few decades.

         --Lynne

    Community Expert
    July 10, 2014

    Hi Gloria,

    With Show as per Condition FrameMaker will show all text which has A applied, no matter, if other conditions are applied as well. This is the OR logic.

    If A should be shown and AB should be hidden, you must use this expression:

    "A"ANDNOT"B"

    A will be shown.

    Then the expression checks for B. and hides all text with B.

    I admit I experiment, if I want to achieve a specific result, specifically when there are more conditions involved.

    Probably this is easier in FrameMaker 12 as it allows to use brackets.

    Best regards

    Winfried

    Arnis Gubins
    Inspiring
    July 10, 2014

    With OR logic, hiding B will hide B along with any combined tags containing B (i.e. A+B).

    Arnis Gubins
    Inspiring
    July 10, 2014

    Try using the original FM condition tag approach (Show/Hide logical OR model) and simply set condition A to show and condition B to hide. Any text that has both tags applied will also be hidden.

    Inspiring
    July 10, 2014

    Arnis,

    If by "the original FM condition tag approach", you mean the Show as Per Condition Show/Hide shuttle boxes, then I do not believe there is a way to specify "OR logic" based on the hidden tags. Before the introduction of conditional expressions, FM always showed conditional text if any of the applied tags were shown, as Show as per Condition still does. I agree with Winfried on this one.

    --Lynne