Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
mavenCentral()
}

version = "1.3.0-SNAPSHOT"
version = "1.3.1-SNAPSHOT"
group = "org.hisp.dhis.lib.expression"

if (project.hasProperty("removeSnapshotSuffix")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ internal class Calculator(
evalToNumber(fn.child(1)))
NamedFunction.d2_ceil -> functions.d2_ceil(evalToNumber(fn.child(0)))
NamedFunction.d2_concatenate -> functions.d2_concatenate(evalToStrings(fn.children()))
NamedFunction.d2_condition -> functions.ifThenElse(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This funciton is already declared at line 63.
It was implemented in version 1.2.2, I think you were not seeing it before.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This funciton is already declared at line 63.
It was implemented in version 1.2.2, I think you were not seeing it before.

evalToBoolean(fn.child(0)),
evalToMixed(fn.child(1)),
evalToMixed(fn.child(2)))
NamedFunction.d2_contains -> functions.contains(evalToString(fn.child(0)), evalToStrings(fn.children()).drop(1))
NamedFunction.d2_containsItems -> functions.containsItems(evalToString(fn.child(0)), evalToStrings(fn.children()).drop(1))
NamedFunction.d2_count -> functions.d2_count(evalToVar(fn.child(0)))
Expand Down