From aaadb127f9f7848470df5ab06b29ca3b8ea80279 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 7 Jul 2022 16:51:40 +0200 Subject: [PATCH] Update Switch.cs --- src/modules/Elsa.Workflows.Core/Activities/Switch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Elsa.Workflows.Core/Activities/Switch.cs b/src/modules/Elsa.Workflows.Core/Activities/Switch.cs index 0bdefca78..094ce7de7 100644 --- a/src/modules/Elsa.Workflows.Core/Activities/Switch.cs +++ b/src/modules/Elsa.Workflows.Core/Activities/Switch.cs @@ -39,9 +39,9 @@ public class Switch : Activity foreach (var switchCase in Cases) { - var result = await expressionEvaluator.EvaluateAsync(switchCase.Condition, context); + var result = await expressionEvaluator.EvaluateAsync(switchCase.Condition, context); - if (result) + if (result == true) return switchCase; }