I want to do IF under serveral condition AND && and OR || on it
i have two range of number Top1 - Bottom1 Top2 - Bottom2
and only executed when Currentnumber is within these two range am i doing it okay ?
if (OnlyAbove == True
&& (Top1 > Currentnumber || Top2 > Currentnumber)
&& (Bottom1 < Currentnumber || Bottom2 < Currentnumber)
)
{
Statement
}
Aucun commentaire:
Enregistrer un commentaire