From 2a588b93b0972be7a7eee8cbbf796f4b27002097 Mon Sep 17 00:00:00 2001 From: Joseph Woo Date: Fri, 16 Aug 2024 14:48:12 -0700 Subject: [PATCH] updated when (#8986) --- .../AdaptiveCards.Templating/AdaptiveCardsTemplateVisitor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateVisitor.cs b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateVisitor.cs index 44ea921015..287f9ea23e 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateVisitor.cs +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateVisitor.cs @@ -498,6 +498,10 @@ public override AdaptiveCardsTemplateResult VisitObj([NotNull] AdaptiveCardsTemp else { whenEvaluationResult = returnedResult.WhenEvaluationResult; + if(whenEvaluationResult == AdaptiveCardsTemplateResult.EvaluationResult.EvaluatedToFalse) + { + break; + } } } else