Skip to main content
Participating Frequently
November 15, 2022
Question

Problem with writing a proper condition expression in RH20

  • November 15, 2022
  • 26 replies
  • 2075 views

Hi, I'm struggling to understand the logic of condition expressions and I have a hard time defining the expression that meets my needs.

I have three client tags : Client A, Client B, Client C.

I have two output tags : Online and Print

Text can be tagged with multiple tags, since some functions are common to Client A and B, or Client A and C, or Client B and C.

Furthermore, in my help topics, I have links to help pages that are specific to one client and that are tagged with Online and Client A, or Online and Client B, etc. And I have links that are common to all clients that are tagged only with Online (since I don't want them in a printed output). 

When I produce my online help for Client A, I want to see text that is tagged with : 

  • Client A
  • Client A and Client B
  • Client A and Client C
  • Online
  • Client A and Online
  • Client A and Client B and Online
  • Client A and Client C and Online

I have successfully built a condition expression that includes all the text tagged Client A, whether alone or in combination with another Clients tag or with the Online tag, and excluded any text tagged with Print. Which is almost what I want.

However, I can't find a way to include also text that is tagged with Online only. Is it possible ? If yes, how ?

 

Here is the condition that I have written so far.

     EXCLUDE when Clients is B

     OR

     EXCLUDE when Clients is C

     AND

     EXCLUDE when Output is Print

     AND

     INCLUDE when Clients is A

 

Whenever I want to introduce Online either with AND or OR, I don't get the result I want.

My first try was to add "OR INCLUDE when Output is Online" at the end, but this makes all texts tagged with Online visible, including the text not tagged with Client A but tagged with Client B and/or Client C that I want hidden.

I have made several other attemps by moving my "OR INCLUDE when Output is Online" elsewhere in the condition, and I also tried with "AND INCLUDE when Output is Online" at various places, but I can't get the right result. I can't understand the logic...

Does anyone have a solution ?

Thanks in advance.

    This topic has been closed for replies.

    26 replies

    Peter Grainge
    Community Expert
    Community Expert
    November 26, 2022

    @Heye27311545spiw What has your question got to do with this thread or Adobe's RoboHelp product which this forum is for? 

     

    You need to reply to the correct thread or ask in the Creative Cloud forum.

    ________________________________________________________
    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    November 26, 2022

    Looking through all this again and at @Amebr's project, I think the issue is the use of Include. I'm sure there are scenarios where they might work but I'm not seeing one. By default everything in the TOC used is included so you only need to exclude what you don't want. I have demonstrated how "my" expression seems to meet all the scenarios for Client A. For Client B it would be a simple modification.

     

    @Milsademon Is there any scenario where the expression does not work for Client A?

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    November 25, 2022

    I also want to exclude what is tagged with

    Client B only

    Client B and Online

    B and Client C

    Client B and Print

    Client C and Print

    Client B and Client C and Online

    Client B and Client C and Print.

     

    The expression that Excludes Print, B Only and C Only covers all of those scenarios when you use AND. Any one of those tags will exclude the topic. You would think OR would be required but I have explained that in the topic on my site. 

     

    Here I have added all those scenarios under Additional Requirements.

     

     

    When I generate, all the scenarios you have covered as shown under Additional Requirements do not get included without any change to the expression for Client A. I originally called the expression Not Print but think of it now as Client A Online.

     

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Participating Frequently
    November 28, 2022

    @Peter Grainge Thanks a lot, I will try with creating duplicate tags "B_Only" and "C_Only". I hoped a solution would exist that wouldn't require additional tags, but if it is the only way to reach the result I want... 

    Thank you both @Peter Grainge and @Amebr for the time you spent on this problem.  I am very grateful for your help.

    I will let you know if the solution works in my context.

    Peter Grainge
    Community Expert
    Community Expert
    November 24, 2022

    Just looking at B only and C only, the extra tags seem to do the job. By extension other exclusions should work the same way. I will look at the @Amebr project in due course but this seems to be going in the right direction.

     

     

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    November 24, 2022

    I also want to exclude what is tagged with Client B only, or Client B and Online, or Client B and Client C, or Client B and Print, or Client C and Print, or Client B and Client C and Online, or Client B and Client C and Print.

     

    So if a topic is tagged, for example A, B and C, you want it in for Client A but if it is tagged B only or C only for example you don't want it in. That requires separate tags.

     

    I will look at that tomorrow or over the weekend. @Amebr has sent me her project that I can look at but please confirm paragraph two is correct.

     

    See edit in italics.

     

    I think it will be the same though. More tags for all the scenarios. 

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Participating Frequently
    November 24, 2022

    Yes, paragraph two is correct. Thank you.

    Peter Grainge
    Community Expert
    Community Expert
    November 24, 2022

    From what I could see, you wanted all content unless it is tagged Print. So I wrote an expression called Not_Print.

     

     

    Test it in your client project. Maybe there is a Client D that you also don't want. There you would exclude Client D as well.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Participating Frequently
    November 24, 2022

    Not exactly, as I just answered to Amebr (and I think I mentionned in an earlier post), for Client A, I also want to exclude what is tagged with Client B only, or Client B and Online, or Client B and Client C, or Client B and Print, or Client C and Print, or Client B and Client C and Online, or Client B and Client C and Print.

    Community Expert
    November 24, 2022

    Do you have text that is tagged only for client B, or client B and online, or client B and print (and similarly for client c)? 

     

     

    Participating Frequently
    November 24, 2022

    Yes, the tags are applied similarly for all clients. So when I produce the online help for Client B, I'll want a similar output to what I want for Client A, but excluding what is specific to Client A, of course :-), and same for Client C.

    Community Expert
    November 24, 2022

    Sorry, I should have tagged Peter, as I was asking about his example. 🙂

    Peter Grainge
    Community Expert
    Community Expert
    November 24, 2022

    I have created a new 2022 project and added various lines of text with the tags originally specified. I also took a screenshot of what text so that in an output you can compare what has been generated with the original text.

     

    In the screenshot below the text in the output is what you set out in the original post. The only line that is missing in the outpt is the one tagged Print which is what you didn't want included.

     

    What am I missing?

     

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Participating Frequently
    November 24, 2022

    @Peter Grainge Yes, it is exactly the output I want, how did you do ? 🙂

     

    Peter Grainge
    Community Expert
    Community Expert
    November 24, 2022

    @Amebr Unless you find the answer, please share both the projects with me. I very much doubt I will do any better than you but if not I can then liaise with Adobe.

     

    @Milsademon Can you share the projects, original Classic and New UI? If you can, then see the Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Participating Frequently
    November 24, 2022

    @Peter Grainge I cannot share my Classic project because it is our official client project. However, I could share with you my test project with RH2020, but I assume, from your next answer, that it will not give you more information than what you did yourself in your RH2022 project.

    Community Expert
    November 23, 2022

    I did an upgrade test with RH2019 (not at a computer with RH2020 today) and the upgraded expression matches the manually built one I posted previously and produces the same (incorrect compared to Classic) output. I've added a reminder to redo the test with RH2020 and RH2022 tonight, although I don't expect any different outcome.