Condtional text in the first list item

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
antimuon
Posts: 4
Joined: Wed Mar 16, 2022 8:53 am

Condtional text in the first list item

Unread post by antimuon »

Greetings,

I have a question regarding conditional text combined with lists. It seems to be impossible to place the IF-marker for a conditional text before the first item of a list, if there is not supposed to be any other text before the list, e.g. in a table cell like in a toggle. When I place the IF-marker between the text and the number 1. as in the below example, I get an empty first list item in my output if the condition does not apply.
Example:
1. <IF xyz>Here is a text<END>
2. Here is another text
This is not possible without having an empty paragraph before the list:
<IF xyz>1. Here is a text<END>
2. Here is another text
Is there any way to exclude the first list item without causing this empty artifact?
Marc
Posts: 51
Joined: Mon Dec 18, 2006 1:47 pm
Location: Germany
Contact:

Re: Condtional text in the first list item

Unread post by Marc »

You can work around it by moving the <END> tag to the very beginning of the next (unconditional) paragraph.
However, this is not an ideal and really clean solution. I would also like to learn about a better one if the issue can't be fixed in the software in the first place.
User avatar
Tim Green
Site Admin
Posts: 23127
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Condtional text in the first list item

Unread post by Tim Green »

Hi Anti,

Unfortunately, Marc's solution is currently the only workaround for this. Because of the way both lists and IFDEF tags work, they are not compatible with each other when they are in such close proximity. The IF tag needs to be in the previous paragraph and should also have a space directly after it.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply