playMaker

Author Topic: Array Remove Empty Broken [SOLVED?]  (Read 1451 times)

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 199
    • View Profile
    • Haven Made
Array Remove Empty Broken [SOLVED?]
« on: July 08, 2016, 06: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,
« Last Edit: July 18, 2016, 04:43:57 PM by craigz »

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 199
    • View Profile
    • Haven Made
Re: Array Remove Empty Broken
« Reply #1 on: July 18, 2016, 04: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!