mercredi 30 mars 2016

shorthand "||" in if statements

In GML: If I have the following if statement:

if (x == y || x == z) {//commands};

Can I type this in the shorter form of:

if (x == y || z) {//commands};

And achieve the same result? All three variable (x, y, and z) are real numbers.

Aucun commentaire:

Enregistrer un commentaire