var SaveGamePresent;
for(var i=0; i<101; i=i+1) // 101 is my amount of save slots
{
// set to true and break loop the moment a savegame is found
{
SaveGamePresent = true;
break;
} else SaveGamePresent = false;
}
// activate the button if there are no savegames, disable it if there are none
var button;
if(SaveGamePresent
) button.
Disabled =
false;