Skip to content

Commit 43ebe55

Browse files
gh-73: Fix specification section 3.3.
1 parent 0861515 commit 43ebe55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/SPECIFICATION.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181

182182
The interpreter MUST evaluate the initial `IF` condition first, then each `ELSEIF` condition in order until one is truthy. If no earlier branch is taken and an `ELSE` clause is present, its block MUST execute.
183183

184-
Conditions MUST accept `INT`, `STR`, and `TNS`. A `STR` condition MUST first be converted using the language's `INT` conversion rules. A `TNS` condition MUST be treated as true if any contained element is truthy and false otherwise.
184+
Conditions MUST accept values of any type. When evaluating a condition, the runtime MUST coerce the value to its boolean representation according to that type's conversion rules (see [4](#4-types) for type-specific boolean semantics).
185185

186186
---
187187

0 commit comments

Comments
 (0)