mirror of https://github.com/Icinga/icinga2.git
parent
a9e2bc4b40
commit
4d401a7cc5
|
@ -404,7 +404,7 @@ Value SetExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
|||
|
||||
Value ConditionalExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
||||
{
|
||||
if (m_Condition->Evaluate(frame, dhint))
|
||||
if (m_Condition->Evaluate(frame, dhint).ToBool())
|
||||
return m_TrueBranch->Evaluate(frame, dhint);
|
||||
else if (m_FalseBranch)
|
||||
return m_FalseBranch->Evaluate(frame, dhint);
|
||||
|
|
Loading…
Reference in New Issue