@getincludeidbyfilename()

Returns the ID of an include file name.

Syntax

@getincludeidbyfilename (filename)

Type

HyperMesh Template Function

Description

Returns the ID of the include file if it exists, -1 if it does not, and 0 if it is the master file.

Inputs

filename
The name of the include file.

Example

*variableset(variable1,"[@getincludeidbyfilename($FileNameTran)]")
*if([ @getincludereferenceflag(variable1,1) == 1) ])
*string("*INCLUDE_PATH")
*end()
*field(string,[@inclstrsplit($FileNameTran,+)],72)
*end()
*endif()

Version History

14.0