Skip to main content

Text, Numbers & Booleans

These are the fundamental building blocks of most expressions in Talos.


🔤 Text (String)​

A sequence of characters. In expressions, text must be wrapped in double quotes: "My Text".

Properties​

PropertyDescription
LengthReturns the total number of characters in the text.
EmptyReturns true if the text contains no characters.
ToLowerCaseReturns a copy of the text in all lowercase letters.
ToUpperCaseReturns a copy of the text in all uppercase letters.
GetTypeReturns the string "string".

Functions​

FunctionDescription
Append(text)Adds the specified text to the end of the current text.
Split(delimiter)Splits the text into a List using the specified delimiter (e.g., ${Var}.Split(",")).
Substring(start, length)Extracts a portion of the text starting at start with the specified length.
IndexOf(substring)Returns the position (index) of the first occurrence of the substring, or -1 if not found.
Replace(old, new)Replaces the first occurrence of old with new.
ReplaceLast(old, new)Replaces the last occurrence of old with new.
ReplaceAll(old, new)Replaces all occurrences of old with new.
StartsWith(prefix)Returns true if the text starts with the specified prefix.
EndsWith(suffix)Returns true if the text ends with the specified suffix.

🔢 Numbers (Integer & Double)​

Talos supports both whole numbers (Integer) and decimal numbers (Double).

Properties​

PropertyDescription
GetTypeReturns "integer" or "double".
toStringConverts the number to a text string.

Operators​

Numbers support standard mathematical operators: +, -, *, /, and % (modulo).


✅ Boolean (True/False)​

A type that can only be either true or false.

Properties​

PropertyDescription
GetTypeReturns "boolean".
toStringConverts the value to the text "true" or "false".

Operators​

Booleans support logical operators: && (AND), || (OR), and ! (NOT).