Function IsImage

IsImage(image)
The function checks if a variable or a value contains a valid PNG or JPG image file. It makes sense to check this before drawing. Example:
$Pony = DownloadFile("https://toybasic.com/images/pony.png")
if IsImage($Pony)
	DrawImage(10, 10, $Pony)
end if

See also: