The album title is different from its name (folder). So you have to make the test check for whatever you are going to use as the criteria. If it is the album title then the test is if ($_zp_current_album->getTitle() == 'This is the xyzzy album') printAlbumZip();
The album name is the full folder path from the albums folder. So if you have a subalbum named xyzzy in an album named plover then the name would be plover/xyzzy