@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 |
The condition to evaluate | |
then |
Content to render if condition is false | |
otherwise |
(Optional) Optional content to render if condition is true |
Returns: Renderable
Renderable content