خطأ
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Represents the false boolean value and can prefix a falsity check.
Syntax: خطأ [<expression>]
Category#
boolean
Related#
Examples#
radix/corpus/falsum/falsum.fab (canonical · keyword)#
Represents the false boolean value and can prefix a falsity check.
test "falsum is the false literal" {
const bool inactive ← false
assert inactive ≡ false
assert not inactive
}
test "falsum contrasts with verum" {
assert false ≠ true
assert false ≡ false
}
# =============================================================================
# خطأ — Represents the false boolean value and can prefix a falsity check
# =============================================================================
#
# What this teaches:
# • Represents the false boolean value and can prefix a falsity check.
# • Related keywords: صواب, نوع_لاشيء
#
# Common mistakes:
# • Confusing `خطأ` with `نوع_لاشيء` — `خطأ` is a منطقي literal (false); `نوع_لاشيء` is the null/absent sentinel.
#
# See also: صواب, نوع_لاشيء
# =============================================================================
# خطأ — false literal
#
# GRAMMAR:
# literal :← 'خطأ'
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
main {
const bool inactive ← false
print inactive
}Expected output:
falsum