# Text, char, rune, and bool

text is an owned text value, char is a character literal unit, rune represents a Unicode scalar, and bool is true or false only.

Last updated: 2026-09-09

Package: language | Status: stable

Tags: bool, char, cpu, language, rune, text, values, yeho

Use text for words and messages, rune when Unicode scalar identity matters, and bool for decisions.

```yh
text name = "..."
char name = 'x'
rune name = ...
bool name = true
```


## Text and decisions

Use text for words and messages, rune when Unicode scalar identity matters, and bool for decisions.

Verification: type checked

```yh
text name = "Ada"
char grade = 'A'
bool admitted = Text.Length(name) > 0 and grade == 'A'
Console.Log(Text.From(admitted))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.language__text_char_rune_bool"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/language--text-char-rune-bool/complete-0 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


text is the preferred spelling. string is deprecated.

Conditions require bool. Numbers, text, null, and collections are not truthy or falsy.

Source: yeho/docs/language/language-core.md §3.2 and §3.7; memory-lifetime-unsafe-2026.1.json

AI training permission: https://demonhunterlabs.com/ai-use
