spring-framework / org.springframework.expression.spel.ast / Ternary / getValueInternal

getValueInternal

open fun getValueInternal(state: ExpressionState): TypedValue

Evaluate the condition and if true evaluate the first alternative, otherwise evaluate the second alternative.

Parameters

state - the expression state

Exceptions

EvaluationException - if the condition does not evaluate correctly to a boolean or there is a problem executing the chosen alternative