Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

A string is a series of characters and what you are reading here right now is already a string. Since strings consist of a sequence of numbers, words or single characters, it is possible to perform various operations with them: different strings can be combined, keywords can be filtered, numbers can be converted into strings, or folder names can be assembled to a complete path. It is also possible to sort a string or extract a certain part of it. The graph engine's "String" nodes offer various helpers for complex tasks – even for arrays with multiple string entries.

Nodes

NameDescription
ArrayStringConcatThis node concatenates the inputs 'array0' and 'array1' into a single 'out' array.
ArrayStringConstantThis node returns a constant array.
ArrayStringFilterByMaskThis node returns the elements of the input 'array' at positions specified by the 'mask' parameter.
ArrayStringFindAllElementIndicesThis node returns all positions in the input 'array', which fit to the input 'element' values.
ArrayStringFindElementThis node returns the first position of appearance of the input 'element' within the input 'array'. If the array does not contain the element, -1 is returned.
ArrayStringInsertElementThis node inserts all elements from the 'element' input into the input 'array' at the position specified by 'position'. If 'position' is equal or lower than 0 then the elements are inserted at the beginning of the array. If 'position' is greater or equal than the inputs 'array' size, elements are appended at the end.
ArrayStringMixThis node creates an output array based on the two inputs 'array0' and 'array1' and the input mask. If the mask value equals 0 then the value of 'array0' is used, if the mask value is 1 the value of 'array1' is used.
ArrayStringPushElementThis node appends all the elements from the 'element' at the end of the input 'array'.
ArrayStringRemoveElementThis node removes all elements of the 'by_value' from the input 'array'. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.
ArrayStringRemoveIndexThis node removes all input array positions by the 'index' input.
ArrayStringRemoveRepeatedElementsThis node removes all repetitions of elements from the input 'array'. The 'new_to_old' array can be used as an 'index' input for a GetArrayElement-Node to restore the original array. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.
ArrayStringResizeThis node resizes the input 'array'. If the result is bigger than the input array, the last value is repeated accordingly.
ArrayStringReverseThis node reverses the order of the input 'array'.
ArrayStringSliceThis node returns an array containing the range of the input 'array' from the 'first' position with the given input 'size'.Thus, the output array is a subarray or slice of the input.
ArrayStringSortThis node sorts the input 'array'. The 'old_to_new' array can be used as 'index' input of a GetArrayElement to sort a different array of the same size. The 'new_to_old' array can be used as 'index' input of a GetArrayElement to get the original array order if applied to the sorted one. to apply to other arrays of the same size.
GetArrayStringElementThis node returns the elements of the input 'array' at positions specified by the 'index' parameter.
GetStringGlobalVariableThis node returns a reference to previously stored variables in global memory (using the SetGlobalVariable-Nodes).
IntegerToStringThis node composes a string from an integer, whereas you may define the padding.
RealToStringThis node composes a string from a real, whereas you may define the number of decimal places.
SetArrayStringElementThis node returns the elements of the input 'array' at positions specified by the 'index' parameter.
SetStringGlobalVariableThis node allows the user to create a reference or a copy of the input pin in global memory to be used within other RealFlow graph through the GetGlobalVariable nodes.
StringA string constant. Suitable for direct user input.
StringCompareThis node performs several comparisons between the input strings.
StringConcat2This node takes the input 'left' and 'right' strings concatenates them in a single one. You may specify a 'separator' string between both of them.
StringConcatenateThis node takes the input 'array' of strings and concatenates all of them placing the 'separator' string between each of them.
StringCopyThis node duplicates the value of 'in' to the output 'copy'.
StringCopyToSystemClipboardThis node replaces the operating system clipboard with the input text.
StringFilePathA file path string constant. Suitable for direct user input by opening a file dialog when clicking on the 'in' parameter.
StringFilePathComposeThis node composes a full file name path from its components using the convention: folder/name_frame.extension.
StringFolderA folder string constant. Suitable for direct user input by opening a file dialog when clicking on the 'in' parameter.
StringInfoReturns several information about the input string.
StringPasteFromSystemClipboardThis node returns the content of the clipboard if it is of plain text type. Otherwise, an empty string is returned.
StringReplaceReturns a version of the input 'string' with every occurrence of the string 'before' replaced with 'after'.
StringSplitThis node takes the input string and splits it into the output 'array' of strings. The separator determines where to split the strings exactly.
StringSubStringThis node returns a substring of the input string. Thus, it contains the fragment of the input string with the specified size starting from position 'first'.
StringUpperLowerCaseReturns an uppercase and lowercase version of the input 'string'.

ArrayStringConcat

This node concatenates the inputs 'array0' and 'array1' into a single 'out' array.

Inputs

NameTypesPassThroughDescription
array0String
 Optional

out array

The array0

array1String
 Optional

out array

The array1

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array0
array1

The out array

ArrayStringConstant

This node returns a constant array.

Inputs

NameTypesPassThroughDescription
constantString 

The constant

sizeInteger (1) 

The size

Outputs

NameTypesPassThroughDescription
out arrayString 

The out array

ArrayStringFilterByMask

This node returns the elements of the input 'array' at positions specified by the 'mask' parameter.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

result

The array

maskBit 

The mask

Outputs

NameTypesPassThroughDescription
resultString
 Optional

array

The result

ArrayStringFindAllElementIndices

This node returns all positions in the input 'array', which fit to the input 'element' values. .

Inputs

NameTypesPassThroughDescription
arrayString 

The array

elementString 

The value to find in the input array

Outputs

NameTypesPassThroughDescription
indexInteger 

The index

maskBit 

The mask

ArrayStringFindElement

This node is executed in parallel according to its input pins size.

This node returns the first position of appearance of the input 'element' within the input 'array'. If the array does not contain the element, -1 is returned.

Inputs

NameTypesPassThroughDescription
arrayString 

The array

elementString 

The value to find in the input array

start indexInteger 

The first index to search the element from

Outputs

NameTypesPassThroughDescription
indexInteger 

The index

ArrayStringInsertElement

This node inserts all elements from the 'element' input into the input 'array' at the position specified by 'position'. If 'position' is equal or lower than 0 then the elements are inserted at the beginning of the array. If 'position' is greater or equal than the inputs 'array' size, elements are appended at the end.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

elementString 

The value to insert

indexInteger (1) 

The position to insert the input element on

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringMix

This node creates an output array based on the two inputs 'array0' and 'array1' and the input mask. If the mask value equals 0 then the value of 'array0' is used, if the mask value is 1 the value of 'array1' is used.

The size of the output is the same as mask's size.

Inputs

NameTypesPassThroughDescription
array0String
 Optional

out array

The array0

array1String
 Optional

out array

The array1

maskBit 

The mask

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array0
array1

The out array

ArrayStringPushElement

This node appends all the elements from the 'element' at the end of the input 'array'.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

elementString 

The value to append at the end

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringRemoveElement

This node removes all elements of the 'by_value' from the input 'array'. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

elementString 

The value to remove all its instances from the input array

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

maskBit 

The mask

ArrayStringRemoveIndex

This node removes all input array positions by the 'index' input. .

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

indexInteger 

The positions of the input array to remove

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringRemoveRepeatedElements

This node removes all repetitions of elements from the input 'array'. The 'new_to_old' array can be used as an 'index' input for a GetArrayElement-Node to restore the original array. The returned mask has the same size as the input 'array' and is set to 0 at removed positions.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

Outputs

NameTypesPassThroughDescription
new to oldInteger 

The new to old

maskBit 

The mask

out arrayString
 Optional

array

The out array

ArrayStringResize

This node resizes the input 'array'. If the result is bigger than the input array, the last value is repeated accordingly.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

sizeInteger (1) 

The size

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringReverse

This node reverses the order of the input 'array'.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringSlice

This node returns an array containing the range of the input 'array' from the 'first' position with the given input 'size'.Thus, the output array is a subarray or slice of the input.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

firstInteger (1) 

The position of the element that will be the first of the output array

sizeInteger (1) 

The total number of elements to copy from the input array. If value is negative, all the elements from 'first' are copied to the output array

Outputs

NameTypesPassThroughDescription
out arrayString
 Optional

array

The out array

ArrayStringSort

This node sorts the input 'array'. The 'old_to_new' array can be used as 'index' input of a GetArrayElement to sort a different array of the same size. The 'new_to_old' array can be used as 'index' input of a GetArrayElement to get the original array order if applied to the sorted one. to apply to other arrays of the same size.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out array

The array

Outputs

NameTypesPassThroughDescription
old to newInteger 

The old to new

new to oldInteger 

The new to old

out arrayString
 Optional

array

The out array

GetArrayStringElement

This node returns the elements of the input 'array' at positions specified by the 'index' parameter.

Inputs

NameTypesPassThroughDescription
arrayString 

The array

indexInteger 

The index

Outputs

NameTypesPassThroughDescription
elementString 

The element

GetStringGlobalVariable

This node returns a reference to previously stored variables in global memory (using the SetGlobalVariable-Nodes).

Inputs

NameTypesPassThroughDescription
nameString (1) 

The name

Outputs

NameTypesPassThroughDescription
outString 

The out

IntegerToString

This node composes a string from an integer, whereas you may define the padding.

Inputs

NameTypesPassThroughDescription
integerInteger 

The integer

paddingInteger (1) 

The number of digits used to represent the integer value (1..9)

Outputs

NameTypesPassThroughDescription
stringString 

The string

RealToString

This node composes a string from a real, whereas you may define the number of decimal places.

Inputs

NameTypesPassThroughDescription
realReal 

The real

decimal placesInteger (1) 

The number of digits used to represent the decimal places

Outputs

NameTypesPassThroughDescription
stringString 

The string

SetArrayStringElement

This node returns the elements of the input 'array' at positions specified by the 'index' parameter.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

result

The array

indexInteger 

The index

elementString 

The element

Outputs

NameTypesPassThroughDescription
resultString
 Optional

array

The result

SetStringGlobalVariable

This node allows the user to create a reference or a copy of the input pin in global memory to be used within other RealFlow graph through the GetGlobalVariable nodes.

Inputs

NameTypesPassThroughDescription
nameString (1) 

The name

inStringthrough

The in

store copyBit (1) 

The store copy

Outputs

NameTypesPassThroughDescription
throughPassThroughin

The value connected to the input

out copyString 

The value copied in memory in case a copy has been performed. The same input value otherwise

String

A string constant. Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inString
 Optional

out

The in

Outputs

NameTypesPassThroughDescription
outString
 Optional

in

The out

StringCompare

This node performs several comparisons between the input strings.

Inputs

NameTypesPassThroughDescription
string0String 

The first string to compare

string1String 

The second string to compare

ignore caseBit 

True to ignore the character case for the comparisons

Outputs

NameTypesPassThroughDescription
is equalBit 

True if both input strings are the same

is insideBit 

True if 'string0' is contained in 'string1'

positionInteger 

The position of 'string0' inside 'string1'. If 'string0' is not contained in 'string1' the returned value is -1

StringConcat2

This node takes the input 'left' and 'right' strings concatenates them in a single one. You may specify a 'separator' string between both of them.

For example:

'left' : 'Hi'

'right' : 'RealFlow'

'separator' : '-RF-'

'out' : 'Hi-RF-RealFlow'.

Inputs

NameTypesPassThroughDescription
leftString 

The left

rightString 

The right

separatorString (1) 

The separator

Outputs

NameTypesPassThroughDescription
outString 

The out

StringConcatenate

This node takes the input 'array' of strings and concatenates all of them placing the 'separator' string between each of them.

If the separator is

, or the special character is used instead of displaying the escaped sequence.

For example:

'array' : ['Hi','RealFlow','user']

'separator' : '-RF-'

'out' : 'Hi-RF-RealFlow-RF-user'.

Inputs

NameTypesPassThroughDescription
arrayString
 Optional

out

The array

separatorString 

The separator

Outputs

NameTypesPassThroughDescription
outString
 Optional

array

The out

StringCopy

This node duplicates the value of 'in' to the output 'copy'.

Inputs

NameTypesPassThroughDescription
inString 

The value to duplicate

Outputs

NameTypesPassThroughDescription
copyString 

A copy of 'in'

StringCopyToSystemClipboard

This node replaces the operating system clipboard with the input text.

If the input size is more than one, all the input strings are combined separated with the new line character.

Inputs

NameTypesPassThroughDescription
stringString 

The text to add the system clipboard

inPassThroughthrough

The in

Outputs

NameTypesPassThroughDescription
throughPassThroughin

The input 'in'

StringFilePath

A file path string constant. Suitable for direct user input by opening a file dialog when clicking on the 'in' parameter.

Inputs

NameTypesPassThroughDescription
in
 FilePath

FilePath
String

 

The in

Outputs

NameTypesPassThroughDescription
file path
 FilePath

FilePath
String

 

The file path

StringFilePathCompose

This node composes a full file name path from its components using the convention: folder/name_frame.extension

If padding is set to 0 the output 'filePath' might be undefined.

Inputs

NameTypesPassThroughDescription
folder
 Folder

Folder
String

 

The folder

nameString 

The file root name

extensionString 

The file extension (without the dot)

extension order
 List

name.#.ext
name#.ext
name_#.ext

 

The separator between filename and frame number

paddingInteger 

The number of digits used to represent the frame number

frameInteger 

The frame number

Outputs

NameTypesPassThroughDescription
file pathString 

The file path

StringFolder

A folder string constant. Suitable for direct user input by opening a file dialog when clicking on the 'in' parameter.

Inputs

NameTypesPassThroughDescription
in
 Folder

Folder
String

 

The in

Outputs

NameTypesPassThroughDescription
folder
 Folder

Folder
String

 

The folder

StringInfo

Returns several information about the input string.

Inputs

NameTypesPassThroughDescription
stringStringthrough

The string

Outputs

NameTypesPassThroughDescription
lengthInteger 

The length

is emptyBit 

The is empty

all uppercaseBit 

True if all the characters of the input are upper-case

all lowercaseBit 

True if all the characters of the input are lower-case

uppercaseString 

The upper-case version of the input

lowercaseString 

The lower-case version of the input

throughPassThroughstring

The input 'string'

StringPasteFromSystemClipboard

This node returns the content of the clipboard if it is of plain text type. Otherwise, an empty string is returned.

Inputs

NameTypesPassThroughDescription
inPassThroughthrough

The in

Outputs

NameTypesPassThroughDescription
stringString 

The text pasted from clipboard

throughPassThroughin

The input 'in'

StringReplace

Returns a version of the input 'string' with every occurrence of the string 'before' replaced with 'after'.

The operation is case sensitive.

Inputs

NameTypesPassThroughDescription
stringString
 Optional

result

The string

beforeString (1) 

The substring to be replaced. It is case sensitive and should not be empty

afterString (1) 

The string the 'before' substring will be replaced with

Outputs

NameTypesPassThroughDescription
resultString
 Optional

string

The result

StringSplit

This node takes the input string and splits it into the output 'array' of strings. The separator determines where to split the strings exactly.

If the separator is empty, the input string is splitted into every one of its characters. Otherwise, it must be a single character.

For example:

'in' : 'Hi-RealFlow-user''separator' : '-'

'array' : ['Hi','RealFlow','user']

.

Inputs

NameTypesPassThroughDescription
inString 

The in

separatorString (1) 

The separator character

Outputs

NameTypesPassThroughDescription
arrayString 

The array

StringSubString

This node returns a substring of the input string. Thus, it contains the fragment of the input string with the specified size starting from position 'first'.

Inputs

NameTypesPassThroughDescription
inString
 Optional

out

The in

firstInteger (1) 

The position of the character that will be the first of the output string

sizeInteger (1) 

The total number of characters to copy from the input string. If value is negative, all the characters from 'first' are copied to the output string

Outputs

NameTypesPassThroughDescription
outString
 Optional

in

The out

StringUpperLowerCase

Returns an uppercase and lowercase version of the input 'string'.

Inputs

NameTypesPassThroughDescription
stringString
 Optional

uppercase
lowercase

The string

Outputs

NameTypesPassThroughDescription
uppercaseString
 Optional

string

The upper-case version of the input

lowercaseString
 Optional

string

The lower-case version of the input

  • No labels