Skip to content

Commit

Permalink
clarify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Aug 4, 2023
1 parent 11601cd commit 321a23e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions www/commands/if.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ title: if - ///_hyperscript

The `if` command provides the standard if-statement control flow.

Note that a leading `if` on a separate line from an `else` statement will be treated as a nested if within the else:

```hyperscriptr
...
else
if false -- does not bind to the else on the previous line as an "else if"
log 'foo'
end
log 'bar'
end
```

### Examples

```html
Expand Down

0 comments on commit 321a23e

Please sign in to comment.