Replies: 3 comments 3 replies
|
You can use <Paragraph fontfamily="regular">
<Value>T </Value>
<Value select="telephone" />
<Switch>
<Case test="not(empty(mobile))">
<Value> </Value>
<Value>C </Value>
<Value select="mobile" />
</Case>
<Otherwise>
<Message select="'not defined'" />
</Otherwise>
</Switch>
</Paragraph>BTW: due to a not-changeable design decision, you need to use <Paragraph fontfamily="regular" html="off">
<Value select="address" />
</Paragraph>This would otherwise be interpreted as the address HTML tag and typeset in italic. |
1 reply
|
Hi Patrick, How can I adapt this:
to check if an attribute is empty? This is not working:
Thanks... 🙏 |
1 reply
|
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi @pgundlach
I am preparing a demo for my workplace, but I got stuck here, I want to create a
switch caseif Cellular or Mobile are available, I mean if the these nodes exist, but I am doing something wrong and I haven't find a solution yet.Thanks in advance! 🙏
layout.xmldata.xmlAll reactions