Skip to main content
Version: 26.3

fifth, fifths

Ordinal Number​

Selects the fifth chunk element.

Examples:

put the fifth word of "all men are created equal" —> equal
put the fifth char of "ABCDEFGHIJKLMNOPQRSTUVWXYZ" --> E

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 fifth-to-last char of "ABCDEFGHIJKLMNOPQRSTUVWXYZ" --> V

Fraction​

Example:

set counterWeight to three fifths of an ounce