Categories Main

FILEEXISTS


fileExists( name );

Checks if a file exists.


Use example:

local bg;
if(fileExists("background.png")) bg = newSprite("background.png", 0, 0, 0, 0, 0, 0, 0);

Search results