mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 15:14:07 +02:00
parent
a9e2bc4b40
commit
4d401a7cc5
@ -404,7 +404,7 @@ Value SetExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
|||||||
|
|
||||||
Value ConditionalExpression::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);
|
return m_TrueBranch->Evaluate(frame, dhint);
|
||||||
else if (m_FalseBranch)
|
else if (m_FalseBranch)
|
||||||
return m_FalseBranch->Evaluate(frame, dhint);
|
return m_FalseBranch->Evaluate(frame, dhint);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user