Internal Parameters

Prev Next

Internal parameters can be helpful if you use the same value in multiple areas of your script or if you need to manipulate a value throughout the script's execution.

This article explains how to work with ScriptBuilder internal parameters.

Creating Internal Parameters

Set Parameter

  1. To set a parameter, click the Add button and select Set parameter.

  2. Define the name of your parameter and its initial value. Then click on Add.

    Important!

    • Parameter names -

      • Are NOT case-sensitive.

      • Must begin with a letter.

      • Can contain letters, digits and underscores only.

    • Parameter values -

      • If you need to use ‘\’ (backslash) in a string value, use ‘\\’ instead.

  3. The instruction for creating the parameter and its value will appear in the scriptBuilder.

  4. Upon playing the instruction in ScriptBuilder, the below validation will appear.

Important!

For string values, use single quotation marks.

Set parameter using AI

You can use AI prompts to generate dynamic parameter values, as shown in the examples below. The functionality enables users to leverage AI and easily generate values that can be highly specific and would otherwise be cumbersome to define.

  • A city in the USA

  • A valid phone number in Germany, including the international code.

  • The {x} number in US format.

  • A random Japanese female name that starts with “M” and has more than 5 characters.

  • I got a number in this format: 123_456_123,56. Can you give it to me in a US format? I need you to give me, as a result, just the number, without any text/explanation.

To use AI when setting parameters, set the ‘Use Seemore Intelligence option’ to Yes.
Then type your prompt. You can include parameters in your prompt.

Good to know!

Validate expression

Use the validate expression instruction to validate whether the given expression is true. The expression can include functions and parameters. The validation results (true/false) can be stored in a parameter.

Good to Know!

You can use the operators AND, NOT, and OR in your expressions.

Validate expression using AI

Use AI to ask whether a parameter is valid, as in the examples below. AI-based validation expressions simplify the task and dismiss the technical/syntax understanding required to create similar validations using other methods. The validation results (true/false) can be stored in a parameter.
You can use free text and include strings, parameters, and functions.

  • The word {X} has exactly 5 characters

  • {y} is divisible by 5

  • {delivery_date} is later than today’s date

  • Check that {p} contains at least 5 digits, and the first character is '#'

  • Check that {p} is a valid ID number in French

  • Check that {p} is a city in country {u}

To validate expressions with AI when, set the ‘Use Seemore Intelligence option’ to Yes, in the Validate expression dialog box.
Then type your prompt. You can include parameters in your prompt.

AI Prompt

The AI Prompt instruction is a game-changer for how you create automated instructions. With the AI Prompt, you can generate automation effortlessly using simple, plain English.

Click here to read more about AI Prompt instructions


Viewing Internal Parameter

To view defined internal parameters and their values, click the menu button and select Parameters.


Utilizing Internal Parameters

You can utilize internal parameters anywhere in your script. For example, when validating a screen element value in an expression. To add input parameters to your expression, click the parameters button to select from existing pre-defined internal parameters. The validation results (true/false) can be stored in a parameter.


Click on equals to change the operator. You can select from Equals, Not equals, Contains, Starts with, or Ends with.