Code Block function

Hi @alvpickmans
Do you know how this script work? Why there is no “warning: the index is outside the given range”