mcd-level-1 question 197 discussion

View all MuleSoft Certified Developer - Level 1 (Mule 4) Exam here
back to mulesoft forum

Question 197

Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set
to "#[payload= "FR"]".
What is the output of logger after the execution of choice router is completed?

"Domestic"

"International"

"US"

A dataweave syntax error
(Correct)

Answer:

D


Explanation:
To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give
syntax error.

User Votes:
Discussions
0 / 1000
d.abbas
11 months ago

If payload = FR --> syntax error | if payload == FR --> International