neft
Version:
Universal Platform
22 lines (13 loc) • 502 B
Markdown
> [Wiki](Home) ▸ [[API Reference|API-Reference]] ▸ [[Document|Document-API]] ▸ **n-if**
# n-if
Attribute used to hide or show the tag depends on the condition result.
```xml
<span n-if="${props.user.isLogged}">Hi ${props.user.name}!</span>
<span n-else>You need to log in</span>
```
> [`Source`](/Neft-io/neft/blob/42e53472888b24a14f8aa89b8417a63790934b26/src/document/file/parse/conditions.litcoffee)
## Table of contents
* [n-if](#nif)
* [Glossary](#glossary)
# Glossary
- [n-if](#nif)