spiegel-keyman/web/docs/engine/reference/interface/_nul.md
Marc Durdin 6c145cb775 refactor(web): move web engine help to app repo
Note: build.sh updated to make sure that test:help build action:target
doesn't also call test.sh by adding `:_all` meta-target.

Note: CI will need a new help-keyman-com.sh build step to deploy web
engine help.

Fixes: #12347
2024-10-31 11:00:06 +07:00

42 lines
813 B
Markdown

---
title: nul (KN)
---
## Summary
[`nul`](/developer/language/reference/nul) context check: Returns `true` if the length of the [`context`](/developer/language/reference/context) is less than or equal to `n` characters.
## Syntax
```c
keyman.interface.nul(n, Pelem);
```
or
```c
KeymanWeb.KN(n, Pelem); // Shorthand
```
### Parameters
`n`
: Type: `number`
: The length of `context` to check.
`Pelem`
: Type: `Element`
: The element whose `context` is being examined.
### Return Value
`boolean`
: `true` if the context is not longer than `n` characters, otherwise `false`.
## Description
This is of particular use in handling the [Developer rule `nul`](/developer/language/reference/nul) and is subject to the caveats listed therein.
## See also
- [`keyman.interface.context()`](context)