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. |
Beta Was this translation helpful? Give feedback.
-
Hi Patrick, How can I adapt this:
to check if an attribute is empty? This is not working:
Thanks... 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @pgundlach
I am preparing a demo for my workplace, but I got stuck here, I want to create a
switch case
if 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.xml
data.xml
Beta Was this translation helpful? Give feedback.
All reactions