In the first practice I get an assignment where I saw this: array(index)
Array is a variable with numbers and the array(index) is used in a for ech function.
I dont understand the use of index in array. I think you could also use just the item.
Can someone help?
Another question I have is when do you use max with (), so max(variable) and when do you use .max so variable.max.
To answer your first question. You’re right that you can use item in the For Each block.
But when you click on the For Each block, and look to the Properties panel, you see that there is an Index Output. So you can also use index, to specify the current iteration. Remember arrays start at 0, so the index is the first time also 0.
I forgot to mention in my first reply. That you have to assign a variable to the Index Output parameter, so that you can use this variable in the For Each block. In the solution of the “For Each & If Statement” practice they use the variable “index” for this. See the screenshot