IsFileOfType Function

Returns TRUE if the filename given has a file extension contained within the set of extensions given.

Arguments

Number Type Compulsory Default Description
1 string Yes Filename
2 string array No 'global' Extensions

Argument 1

The filename with extension to check.

Argument 2

A list of extensions to check against.

Returns

Return type: real

If the given filename has an extension contained within the extensions array, returns TRUE, otherwise returns FALSE.