String Helpers
NewGuid
Creates an unique identifier.
Syntax: NewGuid()
Returns the unique identifier as string.
Return type: String
Parse
Converts the value to a specific type.
Syntax: Parse(value, type)
Returns the converted value or nil if parsing fails.
Return type: Dynamic
value
Dynamic
True
type
Enum
True
NumberType,ListNumberType,BooleanType,StringType
ParseCsv
Parses CSV data string and returns it as an object. URLs are also supported.
Syntax: ParseCsv(csv, [ hasHeaders ], [ columnDelimiter ], [ rowDelimiter ])
Object containing the parsed information.
Return type: Dynamic
csv
String
True
Text,Input,SessionGet,Load
hasHeaders
Boolean
False
True,IsTrue,False,IsFalse,Or,Branch,Equals,IsBiggerThan,IsSmallerThan,IsBiggerOrSmallerThan,IsAnyOrderOpen,IsOrderFilled,IsOrderOpen,IsTradeAmountEnough
columnDelimiter
String
False
Text,Input,SessionGet,Load
rowDelimiter
String
False
Text,Input,SessionGet,Load
ParseJson
Parses JSON data string and returns it as an object. URLs are also supported.
Syntax: ParseJson(json)
Object containing the parsed information.
Return type: Dynamic
json
String
True
Text,Input,SessionGet,Load
StringContains
Returns a value indicating whether a specified substring occurs within this string.
Syntax: StringContains(value, searchValue, [ ignoreCase ])
Returns true if the specified substring occurs within this string.
Return type: Boolean
value
String
True
Text,Input,SessionGet,Load
searchValue
String
True
Text,Input,SessionGet,Load
ignoreCase
Boolean
False
True,IsTrue,False,IsFalse,Or,Branch,Equals,IsBiggerThan,IsSmallerThan,IsBiggerOrSmallerThan,IsAnyOrderOpen,IsOrderFilled,IsOrderOpen,IsTradeAmountEnough
StringExplode
Splits a string into substrings that are based on the characters in an array.
Syntax: StringExplode(value, delimiter)
Returns an array of strings.
Return type: ListDynamic
value
String
True
Text,Input,SessionGet,Load
delimiter
String
True
Text,Input,SessionGet,Load
StringFromQuery
Split a string on '&' and '='.
Syntax: StringFromQuery(value)
Returns an key-value based table.
Return type: ListDynamic
value
String
True
Text,Input,SessionGet,Load
StringIndexOf
Gets the zero-based index of the first occurrence of the specified string in the current.
Syntax: StringIndexOf(value, searchValue, [ ignoreCase ])
Returns a zero-based index of the first occurrence of the specified string.
Return type: Number
value
String
True
Text,Input,SessionGet,Load
searchValue
String
True
Text,Input,SessionGet,Load
ignoreCase
Boolean
False
True,IsTrue,False,IsFalse,Or,Branch,Equals,IsBiggerThan,IsSmallerThan,IsBiggerOrSmallerThan,IsAnyOrderOpen,IsOrderFilled,IsOrderOpen,IsTradeAmountEnough
StringJoin
Concatenates 2 string with an optional separator.
Syntax: StringJoin(value1, value2, [ separator ])
Returns the concatenated string.
Return type: String
value1
Dynamic
True
Text,Number,Load,SessionGet
value2
Dynamic
True
Text,Number,Load,SessionGet
separator
String
False
Text,Input,SessionGet,Load
StringSplit
Splits a string into substrings that are based on the characters in an array.
Syntax: StringSplit(value, delimiter)
Returns an array of strings.
Return type: ListDynamic
value
String
True
Text,Input,SessionGet,Load
delimiter
String
True
Text,Input,SessionGet,Load
SubString
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
Syntax: SubString(value, start, length)
Substring of the main value.
Return type: String
value
String
True
Text,Input,SessionGet,Load
start
Number
True
Input,Number,SessionGet
length
Number
True
Input,Number,SessionGet
Last updated