Hi Everyone,
Can anyone please help me how to split values, for example if input is 102-105; 109-111 then output should be 102, 103, 104, 105, 109, 110, 111.
Discussion posts and replies are publicly visible
Hi, check the below code
a!localVariables( local!values:{ "101-105", "111-120", "121-123" }, local!seperateValues:a!forEach( items: local!values, expression: tointeger(split(fv!item,"-")) ), a!flatten( a!forEach( items: local!seperateValues, expression: fv!item[1] + enumerate(fv!item[2]+1-fv!item[1]) ) ) )