Page 1 of 1

Exclude * except... ?

Posted: Fri May 12, 2023 9:41 am
by BedfordWriter
Is it possible to write a conditional that says "include NOTHING except for these marked items." ?
Maybe I just need more practice writing advanced conditional statements but... From what I've found, anything not marked with a conditional will be included by default. I have a project where I'd like to reverse that so that anything not marked with a conditional is excluded. Is it possible?

[Update] I didn't search the docs well enough. As they state: "The condition feature is an inclusive system."
Looks like my only option is to set a condition on everything else in the topic so that I can it, either explicitly or by default. Darn.

Re: Exclude * except... ?

Posted: Mon May 15, 2023 2:35 am
by NorthEast
Conditional statements can only be used to include/exclude content that has been marked with a condition.

Content that's not marked with a condition tag isn't being 'included' as such (nor can it be excluded) - as it's not marked with a condition, it's left alone and is untouched by the build process.

Re: Exclude * except... ?

Posted: Thu May 18, 2023 1:19 am
by ChoccieMuffin
I'm assuming you're talking about just items in the Content Explorer and not things in the Project Organizer?

Here's something you could try.

Add a condition, "Bedford", to your project, and apply it to all your topics. (That should also take care of images, as they'll be dealt with when you exclude the topics that you don't want.)

Assuming you also have "Condition1" and "Condition2", then to get your output to ONLY display material from Condition1 and Condition2 and exclude anything that doesn't have either of those conditions set, set the conditions on your target as follows:

Condition1 - INCLUDE
Condition2 - INCLUDE
Bedford - EXCLCUDE


Take heed of the warning that appears on this help page: https://help.madcapsoftware.com/flare20 ... ssions.htm

"WARNING The condition feature is an inclusive system. If you do not select any options at all, all of the tags will automatically be included, as indicated by the gray text in the Action cell. If you include only some tags and exclude others, any remaining tags without options specifically set will automatically be included. However, if you select Include for any of the tags (even just one) and do not select Exclude for any tags, all of the other tags that do not have the Include option set explicitly will automatically be excluded. If you have not explicitly set an option for a condition tag, make sure you look at the gray text in the Action cell to know what will happen for that tag in the output."