Hello Appian People,
Do you have any idea how to to implement this case:
So for example variable arr must be the same length value of variable value:
local!arr:{1,2,3}
local!value: {"a","b","c"}
But if incase of variable arr is not equal value size of variable value. It needs to add null value on the local!arr , example:
local!arr:{1}
local arr expected ouput must be : local!arr{1,null,null}
another case example:
local!arr:{1,2}
local!value: {"a","b","c","d"}
local arr expected ouput must be : local!arr{1,2,null,null}
Discussion posts and replies are publicly visible
It should just be the case of determine the difference in size of the arrays and adding to the smaller array an enumeration of null values to fill out the difference.
...like this:
fn!append( local!arr, fn!repeat(fn!length(local!value)-length(local!arr), null) )
Obviously you'd have check beforehand that local!arr was in fact smaller than local!value but otherwise this should do the trick,...