Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0Version 17.0 (current version)Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0

On this page

You are viewing an old version of this documentation. Click here to open the current version, 17.0.

nul (KN)

Summary

nul context check: Returns true if the length of the context is less than or equal to n characters.

Syntax

keyman.interface.nul(n, Pelem);

or

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 and is subject to the caveats listed therein.

See also

keyman.interface.context()