1
0
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:
Nathanaël Lécaudé 2020-07-10 13:08:40 -04:00 committed by GitHub
parent 8b36279e52
commit 410009dd61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,8 @@
<h4>Notes</h4>
<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>
<p>The <code>is empty</code> rule 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>
<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>boolean</code>, <code>null</code>
or <code>undefined</code> values.</p>
<h4>Handling message sequences</h4>
<p>By default, the node does not modify the <code>msg.parts</code> property of messages