- May
- 13,813
- 211
Unlike many other variable functions that give info about a file, @LINES[] screws up the command it's embedded in when the file doesn't exist. Perhaps it could give the string "-2" in that case.
Code:
v:\> if "%@crc32[idontexist]" eq "" echo foo
v:\> if "%@md5[idontexist]" eq "" echo foo
v:\> if "%@filesize[idontexist]" eq "" echo foo
v:\> if "%@lines[idontexist]" eq "" echo foo
TCC: (Sys) The system cannot find the file specified.
"%@lines[idontexist]"
Usage : IF [/I] [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] command