after
- Preposition
- put ... after
-
The put after command appends a value as text after the existing value of any container:
-
Example:
put "hi" into foo
put "gher" after foo
put foo --> higher -
Note that this command always treats the container as text, and appends a text value. If either of the values is not text (such as a number, a list, or a property list), it will be converted to text before the values are concatenated.
-
- insert ... after
-
The insert after command extends a list by inserting one or more new values after the existing list. If the original value in the container was not a list, it will be turned into a list of one item before the insertion takes place:
-
Example:
put "hi" into foo
insert "bye" after foo
put foo —> ["hi","bye"] -
Note that this command always treats the container as a list, and inserts a new value (or values) at the end of the list. If the destination is not a list (such as a string, a number, or a property list), it will be converted to a list of one value before the insertion takes place.
-
- Related: before
- put ... after
- Operator keyword
- comes after, does not come after
- the offset of x in y after z
- time out after x
- the day after x
- keyword in seek command (new in 1.67)