Adds an item to a list of items Note: This module was intended for use only by other LAS modules.
Determines the length of the list and places the item in the (length + 1) location of the list.
- LIST
- List to modify. ADD_TO_LIST will retrieve the count of the number of items in the list and use that to add the new item to the end of the list.
- ITEM
- Item to add to the list. ADD_TO_LIST will add this item onto the end of the list.
The length of the_list is determined. The value '12' is placed into the_list at the index (length+1).
Count(LIST) + 1 is determined. If this index value is less than 1 (LIST has no value) then the index value is set to 1. The ITEM given is placed at the determined index location in LIST.