mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update 10-switch.html
Clarify switch help regarding booleans for the is empty / is not empty rules.
This commit is contained in:
parent
8b36279e52
commit
410009dd61
@ -38,8 +38,8 @@
|
|||||||
<h4>Notes</h4>
|
<h4>Notes</h4>
|
||||||
<p>The <code>is true/false</code> and <code>is null</code> rules perform strict
|
<p>The <code>is true/false</code> and <code>is null</code> rules perform strict
|
||||||
comparisons against those types. They do not convert between types.</p>
|
comparisons against those types. They do not convert between types.</p>
|
||||||
<p>The <code>is empty</code> rule passes for Strings, Arrays and Buffers that have
|
<p>The <code>is empty</code> and <code>is not empty</code> rules passes for Strings, Arrays and Buffers that have
|
||||||
a length of 0, or Objects that have no properties. It does not pass for <code>null</code>
|
a length of 0, or Objects that have no properties. It does not pass for <code>boolean</code>, <code>null</code>
|
||||||
or <code>undefined</code> values.</p>
|
or <code>undefined</code> values.</p>
|
||||||
<h4>Handling message sequences</h4>
|
<h4>Handling message sequences</h4>
|
||||||
<p>By default, the node does not modify the <code>msg.parts</code> property of messages
|
<p>By default, the node does not modify the <code>msg.parts</code> property of messages
|
||||||
|
Loading…
Reference in New Issue
Block a user