Skip to main content

size

Since version 3.1

The size term allows the size of an existing file (not deleted) to be evaluated using simple relational operators as described in the table below.

The size term must always be an array with 3 elements:

 ["size", "gt", 0]

The second parameter describes the relational operator and the third parameter is the integer operand to compare against. The example above evaluates to true if the file exists and its size is greater than zero.

Possible relational operators are:

OperatorMeaningResult
eqEqualtrue if file exists and size == operand
neNot Equaltrue if file exists and size != operand
gtGreater Thantrue if file exists and size > operand
geGreater Than Or Equaltrue if file exists and size >= operand
ltLess Thantrue if file exists and size < operand
leLess Than Or Equaltrue if file exists and size <= operand