Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: craigz on July 08, 2016, 09:07:11 PM

Title: Array Remove Empty Broken [SOLVED?]
Post by: craigz on July 08, 2016, 09:07:11 PM
Hiya! :D

I believe the 'Array Remove Empty' action isn't functioning properly :)

I've got 8 string variables with the last 3 of them null (not spaces, I checked  ;)) and it doesn't seem to be removing them from the array.

best,
Title: Re: Array Remove Empty Broken
Post by: craigz on July 18, 2016, 07:43:33 PM
Alrighty, so rookie move here, I realize that with strings and other variables there's no real way for the 'Remove Empty' to work because they don't represent null values like game objects.

Looks like the best way to do this same function is to iterate through the array and if any value is equal to 0/empty string to store the index then delete it from the array.

An extra step, but works pretty well!