เท็จ
Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH 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