I have this local variable
local!variable: {2017,2018,2019,2020} local!variable2: a!forEach( items: local!variable, expression: if(fv!item<2018,"PRE-YEAR",fv!item) ),
I wanted a result like:
{"PRE-YEAR",2018,2019,2020}
Error:
Please help me
Discussion posts and replies are publicly visible
I do not see the error you are sharing:
a!localVariables( local!variable: { 2017, 2018, 2019, 2020 }, local!variable2: a!forEach( items: local!variable, expression: if(fv!item < 2018, "PRE-YEAR", fv!item) ), local!variable2 )
...results in:
This is the initial data that is list of dictionary and i Need result in list of numbers