Skip to main content

If-Else

Overview

Returns a value based on whether a condition is true. The value of the first true condition in the list will be returned, otherwise an optional default value from the 'else' slot will be returned.


Parameters

ParameterParameterValid BlocksRequired
ConditionsThe list of conditional branchesReturn Condition Block GroupNo
ElseAn optional default value to return if none of the conditions is trueAny MJML Component Block GroupNo