mardi 9 juin 2015

Long If Condition or For Loop with If Condition?

Just wondering, but assuming you had maybe 10 different values to compare to X, would it be better to write one giant long if condition, or a for loop with an if-statement that returns true if x == value, and then false if the for loop finishes without returning true?

Aucun commentaire:

Enregistrer un commentaire