Split

The Split Action in the Avo Assure is found under the @Generic Element, instructs Avo Assure to break down a given string into smaller parts using a specific character and stores the result in a dynamic variable.

Syntax

Input Value: <string>;<split character>

Argument
Description

<string>

(Required)

It is actual string which will get split for father use

<split character> (Required)

It used to break a string into smaller parts using a specific character (like a comma), making it easier to work with or check each part separately during a test.

Output Value:

Argument
Description

<Dynamic Variable> (Required)

This variable stores the spited string

<Dynamic Variable> (Optional)

This variable Stroe the status as true or false

Example: Split the string (John Smith) using comma (,) as the split character The Split action takes the value from the Input value column (John Smith) and separates it into parts using the specified split character (,). The result is a list of strings ("John", "Smith"). The list of split values is stored in the {Split Values} variable, whereas the operation status is stored in the {Status} variable:

  • True if the split successful or

  • False if the split character not found or invalid input.

String
Input Value (syntax)
Result

Text Strings

John & Smithz;&

"John", "Smith"

Numeric Strings

1223&24214;&

"1223", "24214"

Special Character

abc@do & main.com;&

"abc@do", "main.com"

Alphanumeric strings

ID87&6;&

"ID87", "6"

Last updated

Was this helpful?