SetVar

Version 1.3 by Outhman Moustaghfir on 2024/01/22 10:09

Overview

The SetVar function is used to define and set variables within a scenario. Variables can be classified as either global or local, each serving distinct purposes within the execution of scenarios.

SetVar(variable_name, value, global=False)
  • variable_name: The name of the variable to be set.
  • value: The value to assign to the variable.
  • global (optional): A boolean flag indicating whether the variable should be global. Defaults to False.

Parameters

  • variable_name: (Type: string) The unique identifier for the variable.
  • value: (Type: any) The value to assign to the variable.
  • global: (Type: boolean, Optional) Specifies whether the variable is global or local. Defaults to False.

Usage

Example 1: Setting a Local Variable

<xsl:value-of select=" ixf:SetVar("local_variable", 42)"></xsl:value-of>
Tags:
Created by Outhman Moustaghfir on 2024/01/22 10:00
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian