String Helpers
Last updated
Last updated
Creates an unique identifier.
Syntax: NewGuid()
Returns the unique identifier as string.
Return type: String
Converts the value to a specific type.
Syntax: Parse(value, type)
Returns the converted value or nil if parsing fails.
Return type: Dynamic
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
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
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
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
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
Split a string on '&' and '='.
Syntax: StringFromQuery(value)
Returns an key-value based table.
Return type: ListDynamic
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
Concatenates 2 string with an optional separator.
Syntax: StringJoin(value1, value2, [ separator ])
Returns the concatenated string.
Return type: String
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
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
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
value
Dynamic
True
type
Enum
True
NumberType,ListNumberType,BooleanType,StringType
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
json
String
True
Text,Input,SessionGet,Load
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
value
String
True
Text,Input,SessionGet,Load
delimiter
String
True
Text,Input,SessionGet,Load
value
String
True
Text,Input,SessionGet,Load
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
value1
Dynamic
True
Text,Number,Load,SessionGet
value2
Dynamic
True
Text,Number,Load,SessionGet
separator
String
False
Text,Input,SessionGet,Load
value
String
True
Text,Input,SessionGet,Load
delimiter
String
True
Text,Input,SessionGet,Load
value
String
True
Text,Input,SessionGet,Load
start
Number
True
Input,Number,SessionGet
length
Number
True
Input,Number,SessionGet