ORing and ANDing conditions
Posted: Thu Jan 28, 2016 8:34 am
Hi all,
I've hit a problem where material is tagged with both version numbers and with components. The problem is that the method used means that version numbers should be considered ORed while components should be considered ANDed. That is, if material is tagged "Version1 Only" and "Version 2 Only", the material should be included if _at least one_ of the versions is included - the condition tags in the target look as follows:
Include Exclude
Version2 Only X
Version3 Only X
The problem is where there is material only for a particular component _and_ for a particular version. In that case, the text is tagged with, say, both "Version2" and "Widget"
Now, I want to generate a version of the manual for Version 3 that excludes the Widget material:
Include Exclude
Version2 Only x
Version3 Only x
Widget X
Unfortunately the "Include" for "Version3 Only" overides the "Exclude" For "Widget", so the text with both condition tags "Version3 Only" and "Widget" is included when it shouldn't be.
If I _omit_ that Include, however....
Include Exclude
Version2 Only X
Version3 Only
Widget X
.... then material tagged both "Version2 Only" and "Version3 Only" is excluded (since at least one exclude applies and there is not explicit include"
OK! If anyone understands this (and it took me a while too), is there any easy way out of this??
P.
I've hit a problem where material is tagged with both version numbers and with components. The problem is that the method used means that version numbers should be considered ORed while components should be considered ANDed. That is, if material is tagged "Version1 Only" and "Version 2 Only", the material should be included if _at least one_ of the versions is included - the condition tags in the target look as follows:
Include Exclude
Version2 Only X
Version3 Only X
The problem is where there is material only for a particular component _and_ for a particular version. In that case, the text is tagged with, say, both "Version2" and "Widget"
Now, I want to generate a version of the manual for Version 3 that excludes the Widget material:
Include Exclude
Version2 Only x
Version3 Only x
Widget X
Unfortunately the "Include" for "Version3 Only" overides the "Exclude" For "Widget", so the text with both condition tags "Version3 Only" and "Widget" is included when it shouldn't be.
If I _omit_ that Include, however....
Include Exclude
Version2 Only X
Version3 Only
Widget X
.... then material tagged both "Version2 Only" and "Version3 Only" is excluded (since at least one exclude applies and there is not explicit include"
OK! If anyone understands this (and it took me a while too), is there any easy way out of this??
P.