playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Array List Contains Count [Solved]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Array List Contains Count [Solved] (Read 711 times)
LuminRabbit
Full Member
Posts: 161
Lumin Rabbit
Array List Contains Count [Solved]
«
on:
November 21, 2020, 09:02:00 AM »
Array List Contains Count if used lets me know how many of those variables are in my list.
How do I iterate through the list of strings and get the index that those variables are at?
Everything I try seems to return only the first index (which is 0) each time. It seems like Index Of never goes past 0.
I've included an image below to help better illustrate.
«
Last Edit: November 21, 2020, 10:52:59 AM by Kodagames
»
Logged
Have I said how much I love playmaker!!! This is one amazing tool
djaydino
Administrator
Hero Member
Posts: 7616
Re: Array List Contains Count
«
Reply #1 on:
November 21, 2020, 09:46:55 AM »
Hi.
The Array list Contains Count has a count result but it seems its not to be used.
But i think you should do this instead :
State 1 :
Array Get Next (store variable and index)
State 2 :
String compare :
if true : add to the 'whatIndex' and go back to state 1
if false : back to state 1
if you need a count :
before array get next do a 'Set Int Value' and set the 'Count' Variable to 0
The do a Int Add (1) in state 2
Logged
Join the PlayMaker Discord Channel!
LuminRabbit
Full Member
Posts: 161
Lumin Rabbit
Re: Array List Contains Count
«
Reply #2 on:
November 21, 2020, 10:52:40 AM »
djaydino, You are the man!
THANK YOU!
The way you did it makes so much more sense
This was the final part of the anagram checker and Im so happy (I even have loops inside of loops, which is crazy!). Thank you my friend!
Logged
Have I said how much I love playmaker!!! This is one amazing tool
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Array List Contains Count [Solved]