Why doesn't the || operator work for me? [closed]

I suppose it should be

while (rndNumber == 1as1 || rndNumber == 1as2)

After || operator you need to specify full boolean expresion, there is not shorthand for right argument only.

Leave a Comment