Can someone please tell me why my code doesn't work? I want to do stuff when the length of a filename is larger then zero. Basically it should do stuff if the file is existing... the "if" statement always equals zero. Can someone tell me how to get the length of the filename?
Picture [ "pic" ] <- surface.add_artwork (config "image",0,0,surface.width,surface.height)
If Picture [ "pic" ].file_name.length() > 0
{
// do stuff
}