0
Зачем нужны false и True.
Я в течение долгих дней не могу понять зачем нужны false и True.
1 Resposta
+ 2
There are a lot of properties that are either true of false.
IsActive
IsOpen
Based on the value of these variables decission can be made.
If (door.IsOpen)
{
//walkthrough
}
else
{
//get key
//unlock lock
//open door
//walk through
}
Which language do you use ?
Booleans although limited do have their purpose.