メインコンテンツまでスキップ
バージョン:26.3

fortieth, fortieths

Ordinal Number​

Selects the fortieth chunk element.

Examples:

put the fortieth item of waitTimes into minimumAcceptableTime
put the fortieth char of "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()-_[]{}\|~`;':,.<>/?π√¢×⎇«»≤≥" --> n

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 fortieth-to-last char of "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()-_[]{}\|~`;':,.<>/?π√¢×⎇«»≤≥" --> 9

Fraction​

Example:

set gap to one fortieth of a centimeter