If the value of variable "var" is a list, then the expression "var[n]" now returns the "n"th element of the list.  If "n" is out of bounds or the value of "var" is not a list, the expression evaluates to 0 and logs an error message.