
Ares2254
Canada
Asked
Hi, I am currently learning code on ARC and I found myself stuck on a problem I was having. I was wondering how to create a list in a variable to store multiple values. ex. ($value="yes","no", "maybe". I was trying to figure out how to do this because I was trying to make a variable that has multiple values to easier execute the waitforspeech() command with multiple values that could be put into one variable.
ex. of what I was attempting to do: $value="yes","no","maybe" waitforspeech(10,$value)
Thanks!
Here's an example that may help you
Edit
Disregard this note.
What you’re asking about are array variables. Which store multiple values in an indexed variable.
This robot program episode will be useful to begin learning how to program: https://synthiam.com/Tutorials/Lesson/119