Im new here. Also Im new in swift. I want to ask if the generated random Number is 1 or 13 or 25. I cut ask something like:
if randomNumber == (1) || if randomNumber == (13) || if randomNumber == (25)
and that's works but its way to much code. I try to minimize my code.
I did try something like this: if randomNumber == (1 || 13 || 25)
but this didn't worked.
Aucun commentaire:
Enregistrer un commentaire