Hi, I'm trying to write a simple JSL function to remove blank values from a list.
Can someone help me tweak this code? (it returns null to me)
thanks, DJ
myList={"apple","orange","banana","","grape","","plum"};
StripBlanks = function({x},
for(a=nitems(x),a>=1,a--,
if(
x[a]=="",
x=remove(x,a)
)
)
);
StripBlanks(myList);