Documentation > CMS Template API Library > Asset > IsFile
IsFile
Whether this asset is of AssetType.File
Type
System.Boolean
Value
Is this a file.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { if(myAsset.IsFile) { Out.WriteLine("This is a file."); } }