Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Boolean Variable

Also known as: Boolean, Bool

1 min read Updated November 10, 2026

Definition A variable that holds only true or false.

What it is

Booleans record yes/no states like isPaid, isActive or hasSubscribed. They drive decisions in code.

Why it matters for your business

Simple flags control many business processes, such as whether an order is paid.

Real-world example

An order stays unpaid until the M-Pesa callback sets isPaid to true, triggering dispatch.

Design Corner tip

Well-named true/false fields make reports and code easier to understand.