NotVarEquals

Top  Previous  Next

 

The NotVarEquals condition returns true if the value of the specified Variable does not match the specified value

lamp Important: The NotVarEquals condition can ONLY be used with existing variables that have already been declared in the script. To create a new variable use the Var command.

Command Syntax

 

The Command syntax is the command name, followed by a colon, then the fully qualified path and file name to check:

 

NotVarEquals:[VariableName],[VariableValue]

 

Parameters:

 

VariableName: The name of the Variable to check

VariableValue: The value to compare

 

Both parameters compulsory as is the comma separating them.

 

Example:

 

[Setup]

Var:FileName = "C:\Temp\My File.txt"

Var:FileSaved,True

 

[Finally]

If:NotVarEquals,FileSaved,False,DeleteFile:%%FileName%%

 

See Also: NotFileExists DirectoryExists NotDirectoryExists