0

while not

Can anyone explain the use of this “while not” stuff??

19th Dec 2018, 10:01 PM
Elis Belen
4 Antworten
+ 11
while not X is simply making the loop go on and on when "not X" is true (implying that X is false then).
19th Dec 2018, 10:18 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
The way i remeber this is when somthing is false or vise versa use ! to make it the opposite value for example boolean i = false; boolean j = !i; so.. i = false and j = true 😉 if somthing is not false then it can only be true.
19th Dec 2018, 11:24 PM
D_Stark
D_Stark - avatar
0
O_o The what meow ?... //Edit: "While not stuff" ????
19th Dec 2018, 10:20 PM
Tobi PL
Tobi PL - avatar
0
the boolean in java beacuse ibject true our false open class
20th Dec 2018, 3:05 PM
Ḿổḩảḿḿẻď Ấḿiň
Ḿổḩảḿḿẻď Ấḿiň - avatar