How can you compare against multiple possibilities in one argument?
Example:
if ((integer == 2) || (integer == 5))
if ((string == "hello") || (string == "dolly))
Would save me a lot of code if you could write that like this:
if (integer == (2 || 5))
if (string == ("hello" || "dolly"))
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…