Programmingbeginner1 min read

Boolean

N/A

布尔值

Boolean · N/A · 布尔值 · BOO-lee-un · bool · true false · Programming · basics · types · fundamentalsProgrammingbool true false

/BOO-lee-un/

Also known as: bool, true false

Last updated August 9, 2026

Definition

A Boolean is a value that is only true or false — used for flags, toggles, and decisions in code.

Real-World Example

isLoggedIn = true tells the app to show the account menu instead of a login button.

References

discuss://translation · public

Translation discussion

Anyone can read and write here. Pick a display name — no email or account. Please keep the thread constructive. Thumb up a rendering you agree with — that helps the editor see consensus; it does not publish the term by itself. You can edit or delete your own comments from this browser; another device or cleared site data cannot.

Community lists who wrote, on which term, and when.

Loading discussion…