IFSIZE        Conditional branch upon file size comparison

Top  Previous  Next

Syntax:

IFSIZExx

[ size ]  goto  [ label ]

Forms:

IFSIZE=

[ size ]  goto  [ label ]

 

IFSIZE<

[ size ]  goto  [ label ]

 

IFSIZE>

[ size ]  goto  [ label ]

 

IFSIZE<=

[ size ]  goto  [ label ]

 

IFSIZE>=

[ size ]  goto  [ label ]

 

IFSIZE! =

[ size ]  goto  [ label ]

Arguments:

[ size  ]

Variable, string, or numeric constant defining a numeric value to compare against the size of the file obtained with the most recent GETNEXTFILE  script command.

 

[ label ]

A valid label within the current script file which is branched to if the date condition is satisfied.

Options:

none

 

 

 

This command is used in conjunction with the most recent GETNEXTFILE compare the size of the file with a specified numeric value.

 

The following conditional branch is taken if a local file just obtained with the GETNEXTFILE command has a size larger than 1000 bytes.

 

       GETNEXTFILE "*.txt"

       IFSIZE> 1000 goto good_file

 

Syntactically, no space is permitted to the left of the '!', '=', '<' or '>' symbols, and a space is required to the right of these symbols.

 

Related Command(s): GETNEXTFILE, IFDATE, IFTIME