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?
Condtional text in the first list item
Moderators: Alexander Halser, Tim Green
Re: Condtional text in the first list item
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.
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.
- Tim Green
- Site Admin
- Posts: 23352
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Condtional text in the first list item
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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.