Problem with writing a proper condition expression in RH20
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.
