From 3fb83c46e2c384d52a6eb0b9d8b67b6743d69c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Fri, 10 Jul 2020 13:08:40 -0400 Subject: [PATCH] Update 10-switch.html Clarify switch help regarding booleans for the is empty / is not empty rules. --- .../@node-red/nodes/locales/en-US/function/10-switch.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-switch.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-switch.html index b5b825c20..7f4a1a85b 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-switch.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-switch.html @@ -38,8 +38,8 @@

Notes

The is true/false and is null rules perform strict comparisons against those types. They do not convert between types.

-

The is empty rule passes for Strings, Arrays and Buffers that have - a length of 0, or Objects that have no properties. It does not pass for null +

The is empty and is not empty rules passes for Strings, Arrays and Buffers that have + a length of 0, or Objects that have no properties. It does not pass for boolean, null or undefined values.

Handling message sequences

By default, the node does not modify the msg.parts property of messages