Split String

Description #

To split a string by a character and  produce the new string determined by its index.

Time-Based #

Not a time-based block (won’t take time to finish execution).

Inputs #

This block has 3 Inputs:

  • Input String: The string to split. If connected to a String Variable it overrides the Text.
  • Split by: The character or string after which the splitting takes place. If connected to a String Variable it overrides the Text.
  • String Index: The number of indices to count after the “Split By” string, to start splitting. If connected to an Integer Variable, it overrides the Index. Indexing starts at Zero.

Outputs #

This block has 1 Output: The New Split String as an Output.

Example #

To split “Hello_World”, starting at “_” count 1 Index and write the second part to console. The result is the word “World”.

Powered by BetterDocs