Find

This pre-built action, found under @Generic Element, instructs Avo Assure to check whether a specific string exists within a larger string and identify its position and the result is stored in a dynamic variable.

Syntax

Input Value: <actual string>;<string to find>;<wildcard>(optional)

Argument
Description

<actual string> (Required)

The input syntax contains the actual string and the expected string to be found, separated by a semicolon, both of which are written in the input column.

<string to find> (Required)

Which required string to find

<wildcard> (optional)

wildcard: this is declaration where user will declare which wildcard character is using for current execution In Avo Assure ‘?’ And ‘*’ are supported as wildcard character

Output Value:

Argument
Description

<Dynamic Variable >

(Required)

First Dynamic Variable tells the position at which the string to be found is present within the actual string

<Dynamic Variable >

(Required)

Second Dynamic Variable saves the result is True/False status which tells whether the string to be found is present within the actual string or not.

Example:

Find text using a wildcard in a comment (I like this post! ️ #amazing) The Find action takes the value from the Input Value column (I like this post! ️ #amazing) and searches for the string (like*) using a wildcard, where * represents any characters after like. It finds a match and stores the position in the {Found Position} variable. whereas the operation status is stored in the {Status} variable, with the following possible values:

  • True - if the string found or

  • False - if the string not found

Last updated

Was this helpful?