Let's say I wanted a player to advance to world1 if an actor was in world2 OR in world 3. Is there some sort of or statement? Here's what I have, but if I had like 5 different worlds that would advance to world 1, it would get over-redundant.
if (getWorld().getClass() == World2.class)
{
Greenfoot.setWorld(new World1());
} else if (getWorld().getClass() == World3.class)
{
Greenfoot.setWorld(new World1());
}

