in

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
in
Summary

Designates the string that contains a chunk expression.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
repeat with x = 1 to the number of items in the hilitedLines of me
RelatedKeyword: character, of, word, line, string, lines
Glossary: keyword, chunk, chunk expression, expression
Description

Use the in keyword as a synonym for the of keyword in chunk expressions.

When designating a part of a string, use the in keyword after the chunk type. For example, to specify the first word of a string, use an expression like this:

word 1 in string

In complex chunk expressions with multiple chunk types, use the in keyword after each chunk type. For example, to specify the last character of the second line of a string, use an expression like this:

last char in line 2 in string

When designating the number of chunks in a string, use the in keyword after the chunk type. For example, to get the number of lines in a string, use an expression like this:

the number of lines in string

Tagstext processing