Core Function HasExtension
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> HasExtension ( <path> ) </pre> === Description === Determines whether a path includes a file name extension. === Parameters === ==== path ==== The path to search for a...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:38, 14 June 2015
HasExtension ( <path> )
Contents |
Description
Determines whether a path includes a file name extension.
Parameters
path
The path to search for an extension.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None
Example
$FileA = 'C:\Test.exe'; $FileB = 'C:\Test'; println( $FileA . (HasExtension($FileA) ? " has extention" : " does not have extention") ); println( $FileB . (HasExtension($FileB) ? " has extention" : " does not have extention") );