Examples

Click any example to load it directly into the playground.

Quick Start

Variables, assignment, and output. The minimum viable Blan program.

Loading...
Click to run

If / Else-If / Else

Chained conditional branches using agar, warna, and nahi_toh.

Loading...
Click to run

While Loop

Arithmetic decrementing with JabTak. Runs until the condition is false.

Loading...
Click to run

Boolean Logic

Logical operators with short-circuit evaluation. sach and jhooth as first-class values.

Loading...
Click to run

Boolean in Conditionals

A boolean variable used directly as a condition without an explicit comparison.

Loading...
Click to run

Numeric Boolean Mapping

sach behaves like 1 and jhooth like 0 inside numeric expressions and comparisons.

Loading...
Click to run

String Concatenation

The + operator joins strings when both operands are string types.

Loading...
Click to run

Combined: Branch + Loop

Conditionals and loops used together in one program.

Loading...
Click to run

Comparison Operators

All six comparison operators evaluated against numbers and booleans.

Loading...
Click to run

Runtime Error — Modulo by Zero

The evaluator stops with a themed runtime error when dividing by zero.

Loading...
Click to run