Инструменты пользователя

Инструменты сайта


en:autorun:documentation:datatypes

Data types

The main data type in Autorun is strings, but they can be interpreted as numbers depending on the expression and operators.

Number

Integer and real numbers are supported, for example: 3, 5.123, -2. Expressions in functional notation allow you to write numbers in hexadecimal, for example: 0xFF, 0x1A3F.

Line

Strings in Autorun must be enclosed in quotes. If the string must contain quotes, you must use quotes of a different type. For example:

"string"
'string'
"string in 'quotes'"
'string in "quotes"'

If you want to use quotes of both types in the text, then the quotes of the type with which the string begins must be doubled.

Example:

"this ""text"" and this 'text' in quotes" 
'this "text" and this ''text'' in quotes'

Boolean

There are no boolean data types in Autorun, their role is played by the numbers 1 and 0. You can use the True and False keywords, but they are actually used as constants with values 1 and 0 respectively.

en/autorun/documentation/datatypes.txt · Последнее изменение: 2022/09/26 12:43 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki