Elimination rule
a!localVariables(
local!data: {
a!map(id: 1, classid: 1702116260, value: - 115),
a!map(id: 2, classid: 1702116260, value: 190),
a!map(id: 3, classid: 1702116260, value: - 190),
a!map(id: 4, classid: 1702116260, value: 115),
a!map(id: 5, classid: 1702116260, value: 210),
a!map(id: 6, classid: 1702116260, value:104)
},
local!choiceLabels: {
concat(1702116260, 104),
concat(1702116260, 210)
},
local!choicevalues: { 5, 6 },
local!choiceLabels
)
I want to eliminate all the rows in local!data that has a corresponding negative value and add their classid + value in choice labels and ids in choicevalues
e.g. value -115 with id 1 has value 115 with id 4... so both need excluded.
whereas values 104 and 210 has no corresponding negative fields to include those in choiceLabels/ choiceValues
