Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krönert authored and Florian Krönert committed May 7, 2020
2 parents 72af8a1 + 85a7dfb commit 7c1cf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let sha = Git.Information.getCurrentHash()
// version info
let major = "3"
let minor = "6"
let patch = "0"
let patch = "1"

// Follow SemVer scheme: http://semver.org/
let asmVersion = major + "." + minor + "." + patch
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Xrm.Oss.XTL.Interpreter/FunctionHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static int Compare(List<ValueExpression> parameters)

public static FunctionHandler And = (primary, service, tracing, organizationConfig, parameters) =>
{
if (parameters.Count != 2)
if (parameters.Count < 2)
{
throw new InvalidPluginExecutionException("And expects at least 2 conditions!");
}
Expand All @@ -177,7 +177,7 @@ private static int Compare(List<ValueExpression> parameters)

public static FunctionHandler Or = (primary, service, tracing, organizationConfig, parameters) =>
{
if (parameters.Count != 2)
if (parameters.Count < 2)
{
throw new InvalidPluginExecutionException("Or expects at least 2 conditions!");
}
Expand Down Expand Up @@ -920,4 +920,4 @@ private static T CheckedCast<T>(object input, string errorMessage, bool failOnEr
};
}
}
#pragma warning restore S1104 // Fields should not have public accessibility
#pragma warning restore S1104 // Fields should not have public accessibility

0 comments on commit 7c1cf78

Please sign in to comment.