BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
111 / 278 · Module 6 — Mule Routing and Orchestration · filtered: code← prev⊞ allnext →

6.5Multiple conditions

Example:

payload.active == true
and
payload.customerType == "Premium"

You may see:

<when expression="#[
    payload.active
    and payload.customerType == 'Premium'
]">

You don't need to memorize XML syntax.

Think:

if (
    customer.active &&
    customer.customerType === "Premium"
)