web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

How to use if statements in Word layout?

(0) ShareShare
ReportReport
Posted on by

Hey guys,

do you know, if it possible to use if staments in the Word layout?

To make fields visible on my reports , I use the XML mapping in the Word layout.

So far it has always been enough to print everything I wanted.

Now I have another situation, because I want to print only specific fields if a certain condition is true or false.

Do you know how to do that in Word layout?

I try something like this:

IF_5F00_Condition.PNG

Unfortunately it is not working, it prints me all the time "Gentlemen", but it has to print "Contact_Greenting", which contains "Lady".

Do you know the syntax?

Do you know to how insert my fields through the XML mapping?

Thank you ;)

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,921

#2
YUN ZHU Profile Picture

YUN ZHU 2,012 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,999 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans