How to skip a method in Processing

So I thought I could use " ! " in some way but is there a function to skip a method or something like it?

if(player.isDestroyed == true) {

}
and if it is true, I want it to skip drawplayer.

if(!player.isDestroyed) { // in other words player is alive
    drawplayer();
}
else {
    // code to execute if player is destroyed 
}
2 Likes

if(player.isDestroyed == false) // this equals " ! player.isDestroyed"

1 Like