Replace

This pre-built action, located under @Generic Element, instructs Avo Assure to replace a specified string with a recommended one, storing the result in a dynamic variable.

Syntax

Input Value: <actual string>;<string to be replaced>;<string to replace>

Argument
Description

<actual string>

(Required)

This is the original string that contains the text to be modified.

<string to be replaced>

(Required)

This is the specific part of the original string that needs to be replaced

<string to be replaced>

(Required)

This is the new string that will take the place of the one being replaced

Output Value:

Argument
Description

<Dynamic Variable >

(Required)

This variable stores the replaced string

<Dynamic Variable >

(Optional)

This variable store the status as true or false

Example: Replace a word in string (Michael Brown) by replacing (Brown) with (Smith) The Replace action takes the value from the Input value column (Michael Brown), finds a specific string within it (Brown), and replaces it with another string (Smith). The updated string (Michael Smith) is stored in the {Replaced value} variable, whereas the operation status is stored in the {Status} variable:

  • True if the replacement successful or

  • False if the string to be replaced is not found

String
Input Value (syntax)
Result

Text Strings

Michael Brown;Brown;Smith

Michael Smith

Numeric Strings

12345;23;98

19845

Special Character

Alphanumeric strings

ID8765;8765;2345

ID2345

Last updated

Was this helpful?