0

Зачем нужны false и True.

Я в течение долгих дней не могу понять зачем нужны false и True.

6th Dec 2019, 7:35 PM
Даниил Харисов
Даниил Харисов - avatar
1 Odpowiedź
+ 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.
6th Dec 2019, 10:23 PM
sneeze
sneeze - avatar