@checkfile()

Checks for a file.

Syntax

@checkfile (file name)

Type

HyperMesh Template Function

Inputs

file name
File name to be checked.

Example

*text()
  *if([@checkfile(\tmp\file)=1])
     *string("file exists")
  *else()
     *string("file does not exist")
  *endif()
*output()

Return 1 if the file exists. On a PC, use backslashes for the path (\tmp\file). On UNIX, use forward slashes for the path (/tmp/file).