Conditional text in code snippets

This forum is for all Flare issues not related to any of the other categories.
Post Reply
jaclark
Jr. Propeller Head
Posts: 9
Joined: Mon Jun 12, 2017 3:24 am

Conditional text in code snippets

Post by jaclark »

Is it possible to add conditional tags to a section of code in a code snippet?
For example,

<MadCap:codeSnippet class="codeBlock">
<MadCap:codeSnippetCopyButton />
<MadCap:codeSnippetCaption class="codeHeader">
<p>cxth.properties</p>
</MadCap:codeSnippetCaption>
<MadCap:codeSnippetBody MadCap:useLineNumbers="False" MadCap:lineNumberStart="1" MadCap:continue="False" xml:space="preserve" style="mc-code-lang: PlainText;">
# Messaging Cache properties
# ------------------------<MadCap:conditionalText MadCap:conditions="Global.CxTHIO">
#com.ncr.cxth.io.position.poll.rate.ms=120000
#com.ncr.cxth.io.threads.sending=1
#com.ncr.cxth.io.poll.rate.ms=2000
#com.ncr.cxth.io.batch.size=2100</MadCap:conditionalText><MadCap:conditionalText MadCap:conditions="Global.CxTH">
#com.ncr.cxth.threads.receiving=20
#com.ncr.cxth.poll.rate.ms=2000
#com.ncr.cxth.batch.size=105</MadCap:conditionalText>
</MadCap:codeSnippetBody>

I can't get this to work properly - although the condition seems to be honoured, the tag is included in the output.

# Messaging Cache properties
# ------------------------<MadCap:conditionalText MadCap:conditions="Global.CxTH" xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
#com.ncr.cxth.threads.receiving=20
#com.ncr.cxth.poll.rate.ms=2000
#com.ncr.cxth.batch.size=105</MadCap:conditionalText>


Thanks in advance,..

Jill C.
Post Reply