This works for both /icon objects, and icon files loaded into the resource cache.
if(isicon('sounds/zworp.ogg'))
// this will not pass
if(isicon('icons/alien.dmi'))
// but this will
This works for both /icon objects, and icon files loaded into the resource cache.
if(isicon('sounds/zworp.ogg'))
// this will not pass
if(isicon('icons/alien.dmi'))
// but this will