How to convert below mule3 code to mule4:
#[validateCurrentQuarter ? false: (year == prevQuarterYear) && (month == prevQuarterMonth)]
In Mule 4 the expression language is DataWeave 2.0. The equivalent of the ternary operator is if/else. Variables must be prefixed with vars.. Assuming vars.validateCurrentQuarter is boolean:
#[if (vars.validateCurrentQuarter) false else (year == prevQuarterYear and month == prevQuarterMonth)]
You can find more information in the migration guide.
flowVars.And what are their data types?