Thanks for the answer! But I still do not understand.
I'm sorry for tormenting with strange questions, but if I do not understand it, I will not be able to use array queries.
I call the function by passing 0 in the parameter.
This means that this condition:
Value at arr_potential_directions.At(arrayPosition) = 1
after inserting the value it will look like this:
Value at arr_potential_directions.At(0) = 1
and it does not work,
it does not matter if I type arrayPosition or 0 in brackets.
But if I save the condition in this way:
Value at arr_potential_directions.At(1) = 1
the speech synthesis will be launched.
But my array looks like this:
position / value:
0 - 1
1 - 0
2 - 1
3 - 1
The code:
Value at arr_potential_directions.At(0) = 1
I understand:
if the array "arr_potential_directions" at position 0 is the value 1 then run ...
Am I thinking incorrectly?