Event: "Examine" { // 3 different if statement examples which have the same result // If the value of the isAlive property of someChar is equal to false, end game
if (!isAlive) endGame();
if (isAlive == false) endGame();
if (isAlive != true) endGame(); } }
Description
The logical value false is used in operating if statements. Properties can hold the boolean value false.