IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > IXX. - Choose one of two cases >

IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

IFV. / NFV. - If File Version

Previous Top Next


MiniRobotLanguage (MRL)

 

IFV. Conditional Statement

If File Version

 

 

Intention

 

Used to compare version information from files.

As parameters you can use the filenames (with path) or the version-string.

 

The negative Form of this statement is NFV..

 

 

 

Syntax

 

 

IFV.P1|P2|P3

 

 

Parameter Explanation

 

P1 - Filename 1 or version 1

P2 - compare-operation:

 > < = ! => <=

P3 - Filename 2 or version 2

 

 

 

 

Example

 

'**********************************************

' IFV. - Sample

'**********************************************

'DBM.2

' Use Path to a existiing files

VAR.§§FIA=?exepath\MR01.Exe

VAR.§§FIB=?exepath\MRE.exe

PRT.===========================================

GFV.§§FIA

PRT.Version File 1: $$000

GFV.§§FIB|§§RES

PRT.Version File 2: §§RES

 

' Syntax 1 must use Variables

IFV.§§FIA>§§FIB

PRT. File 1 is newer

ELS.

PRT. File 2 is newer

EIF.

 

' Syntax 2 can use Text-Filenames

IFV.?path\PR01.Exe|>=|?path\u9.exe

PRT. File 1 is newer

ELS.

PRT. File 2 is newer

EIF.

 

' We can compare files or File-Version

' Supported Operators:

' >,<,=,=>,<=,!

IFV.2.1.0.9|>|2.1.1.0

PRT. Is the case

ELS.

PRT. Is not the case

EIF.

 

PRT.===========================================

DMP.4

END.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    GFD. - Get File Date

    GFV. - Get File Version

    IFD. / NFD. - If File Date

    IFV. / NFV. If File Version

    GSS. - GetSplitString