Lists#
The same rules apply for lists as for variables regarding for all sprites and for this sprite only.
Declaration#
With default values#
Operations#
Add item to list#
Delete item from list at index#
Delete all items from list#
Insert item at index in list#
Replace item at index in list#
Get item at index in list#
Get index of item in list#
Get length of list#
Check if item is in list#
Show/Hide List Monitor#
Get random/last item in list#
Compound Assignment#
Operator | Implementation |
---|---|
list_name[index]++; |
![]() |
list_name[index]--; |
![]() |
list_name[index] += y; |
![]() |
list_name[index] -= y; |
![]() |
list_name[index] *= y; |
![]() |
list_name[index] /= y; |
![]() |
list_name[index] //= y; |
![]() |
list_name[index] %= y; |
![]() |
list_name[index] &= y; |
![]() |