+ 1

If I set up a boolean and put if(gav == True), where gav is the boolean, it says "The name 'True' does not exist in this context

How does this make any sense? True is a valid boolean value. So why isn't it working?

11th May 2023, 3:07 AM
Damon
Damon - avatar
2 Respostas
+ 4
Boolean values are not capitalized in C# side note: gav == true is also redundant, you can just say if(gav)
11th May 2023, 3:13 AM
Orin Cook
Orin Cook - avatar
+ 2
Okay it works now. Thanks.
11th May 2023, 3:16 AM
Damon
Damon - avatar