Link to home
Start Free TrialLog in
Avatar of kwh3856
kwh3856Flag for United States of America

asked on

How do you define a variable as a bit or True in C#?

I need to define a variable as true but I am unsure what/how to assign the variable.  Here is how I am trying to do it now but obviously it is not right.  Can someone point me in the right direction?

bit CoveredLoad = true;

ASKER CERTIFIED SOLUTION
Avatar of CuteBug
CuteBug
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kwh3856

ASKER

Thanks for the quick response.

Thanks
Kenny
try Boolean (or bool for short).
example:
bool IsThisTrue = true;