- Aug 2, 2019
- 1,209
- 1,883
I have a question about the use of "if True:"
I have seen it used in menus like this:
I have used it myself in some conditional if statements to negate the variable used and it works their as well.
What I am wondering is what is True? Is it just a python default that True is True? So if I used an "if False:" statement would it fail or would it be similar to an "if True:" statement in that False is False?
I've seen this in a few games especially in menus and I really just wonder what is the point of using this condition. And what exactly is the True statement referring to.
I have seen it used in menus like this:
Code:
menu:
"Yes" if True:
pass
"No" if True:
pass
What I am wondering is what is True? Is it just a python default that True is True? So if I used an "if False:" statement would it fail or would it be similar to an "if True:" statement in that False is False?
I've seen this in a few games especially in menus and I really just wonder what is the point of using this condition. And what exactly is the True statement referring to.