playMaker

Author Topic: Array List Contains [SOLVED]  (Read 1231 times)

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Array List Contains [SOLVED]
« on: October 23, 2020, 02:55:14 PM »
Please see attached image of simple setup.

I have a text file of strings and using Split Text To Array List to put these into an array list proxy, the value Parse as Type is set to string (this works fantastic!).
 
In the next state from this array Im using "Array List Contains" to see if the variable submitted word exists in that array.

From the attached image you can see that the array list proxy has this word contained (index, Item 2) but the state never switches to the Yes state (Is Contained Event).

Does the Array List Contains action cycle through each item of the array? Any thoughts on why it would not be detecting this word aaa.

I did not want to use an array get next or another action if that action is already cycling (iterating) through all of the items.
« Last Edit: October 23, 2020, 06:27:33 PM by Kodagames »
Have I said how much I love playmaker!!! This is one amazing tool

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Re: Array List Contains [SOLVED]
« Reply #1 on: October 23, 2020, 06:27:16 PM »
Solved with "Array List Contains Name"

Not sure why it wouldn't just work but the above action from the ecosystem did the trick ;)
Also, it will work if for example you do an Array list get random then store the random item, then later in the Array List Contains add the stored variable it works with no issues but that defeated the purpose for me in this situation..
« Last Edit: October 23, 2020, 06:29:28 PM by Kodagames »
Have I said how much I love playmaker!!! This is one amazing tool