beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 102

background image

Chapter 5 Script Commands

Scripting Guide

102

$ScriptName := “script1”

ELSE

$ScriptName := “script2”

ENDIF
%ReturnValue := EXEC( $ScriptName, $Parm1, %Parm2)

Depending on the value of %Status, either script1 or script2 is executed.

Example:

$ScriptName := “myscript”

//script name to execute

//in this example, ‘myscript’ requires two numerical
//arguments
%ReturnValue := EXEC( $ScriptName, %Parm1, %Parm2)

See Also:

START