Skip to main content
[Command] Join text
Sophie avatar
Written by Sophie
Updated over 10 months ago

Definition and Usage

The Join text command is used to concatenate or join multiple text strings or variables into a single string. It allows you to programmatically merge and assemble text strings. Common use cases include:

  • Building names, addresses, file paths

  • Constructing messages or documents

  • Formatting data to import into other systems

  • Generating dynamic texts for UI interactions


Parameter Values

Set Parameters

Parameter

Description

Text list

Select a list variable

Delimited type

Select the delimiter type

  • None: join text list without a delimiter

  • Standard: use space, tab or new line as a delimiter

  • Customized: set a custom string as a delimiter

Delimiter

Select a delimiter

Delimiter count

The number of strings that count as a delimiter

Save text list as

Save the joined text as a new variable

Error Handling

Parameter

Definition

When error occurs

Select the action to be performed when an error occurs

  • Terminate the project

  • Ignore the error and execute the next command

  • Retry action


Example

The above workflow joins the text "https://" with "www.octoparse.com" and gets the output "https://www.octoparse.com".

Did this answer your question?