सत्य
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Represents the true boolean value and can prefix a truthiness check.
Syntax: सत्य [<expression>]
Category#
literal
Related#
Examples#
radix/corpus/literalia/boolean.fab (canonical · keyword)#
Boolean literals सत्य and असत्य with तार्किक bindings.
main {
const bool enabled ← true
const bool disabled ← false
print enabled
print disabled
print enabled and not disabled
}Expected output:
verum
falsum
verum
radix/corpus/verum/verum.fab (canonical · keyword)#
Represents the true boolean value and can prefix a truthiness check.
test "verum is the true literal" {
const bool active ← true
assert active
assert active ≡ true
}
test "verum stands alone as a truthy condition" {
assert true
}
# =============================================================================
# सत्य — Represents the true boolean value and can prefix a truthiness check.
# =============================================================================
#
# What this teaches:
# • Boolean literal — `सत्य` as the canonical `true` value for `तार्किक` type
# • Truthiness prefix — `सत्य` can prefix an expression for explicit truthiness checking
#
# Common mistakes:
# • confusing सत्य (the true literal) with नहीं शून्य_मान (a null check) — सत्य is a boolean value, not a presence test
#
# See also: असत्य, शून्य_मान
# =============================================================================
# सत्य — true literal
#
# GRAMMAR:
# literal :← 'सत्य'
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
main {
const bool active ← true
print active
}Expected output:
verum