@tempots/dom

Unless() function

Renders content when a condition is false.

Signature:

Unless: (condition: Value<boolean>, then: TNode, otherwise?: TNode) => Renderable

Parameters

Parameter

Type

Description

condition

Value

The condition to evaluate

then

TNode

Content to render if condition is false

otherwise

TNode

(Optional) Optional content to render if condition is true

Returns: Renderable

Renderable content