Skip to main content
Version: 26.3

eleventh, elevenths

Ordinal Number​

Selects the eleventh chunk element.

Example:

put the eleventh line of myText into divider
put the eleventh char of "ABCDEFGHIJKLMNOPQRSTUVWXYZ" --> K

Accessing Chunks Using ordinal-to-last​

(Added in SenseTalk 2.13)

You can access chunks counting back from the end of a string, list, etc. using ordinal-to-last syntax.

Example:

put the eleventh-to-last char of "ABCDEFGHIJKLMNOPQRSTUVWXYZ" --> P

Fraction​

Example:

set fraction to seven elevenths