Can one of the @moderators add a block to the arrays section?
This block is a “if contains ”
Please add this is would be soooo helpful
if there is an easier way for me to do this in blocks instead of have you create a whole new block?
1 Like
Hi, @platformermaster !
I think the block that you want is already at the bottom of the Arrays drawer. Try the find index of
block.
To use it in an if
block, test if the result is greater than -1. In other words, if the block returns -1, then the item does not exist in the array.
2 Likes
Okay i was wondering what that block did, Thanks!
2 Likes
BTW, Sarge 's BetterArrays extension includes the block that you describe.
4 Likes
I’m not a moderator… But I made 2 function blocks based on what I think you need.
One functions for number arrays, the other functions for string arrays.
Tell me if anything is wrong.
3 Likes