Flow Control Statements - McAfee MANAGEMENT EDITION 2.5 Administrator's Manual

Hide thumbs Also See for MANAGEMENT EDITION 2.5:
Table of Contents

Advertisement

Using MCScript to Update Your Script Files

Flow control statements

W
Command
name
GOTO
GOTODEFER 1
IF
ELSE
296
Management Edition
NOTE: [..] Indicates optional parameters and switches.
Min #
params
1
1
0
Usage, examples, and comments
GOTO
<GOTO_LABEL>
Example:
GOTO EndOfScript
;
; Script commands....
;
EndOfScript:
<GOTO_LABEL>
GOTODEFER
Commands between the command and the label are
deferred until a user logs into the machine
(Windows NT only).
<CONDITIONAL_CLAUSE>
IF
Next statement is executed if conditional evaluates != 0.
<CONDITIONAL_CLAUSE>: 'COUNTER' | 'VERSION'
| <COMMAND_NAME> [<OPERATOR> <VALUE>]
'COUNTER': Uses value of internal counter variable.
'VERSION': Uses Update Agent build number.
<COMMAND_NAME>: Name of any non-flow control
command, uses last result of that command.
<OPERATOR>: '=' | '!=' | '<' | '>'
<VALUE> = 'TRUE' | 'FALSE' | <Any Integer Value>
Example:
IF VERSION > 935
LOADLIBRARYCHECK !OLDGINAVAR!
OLDGINAVAR MSGINA.DLL
Should be second non-comment/blank line after IF
command.

Advertisement

Table of Contents
loading

Table of Contents