We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If msg.increment is set to 0, the node increments by 1. I would have expected it will keep the same value.
If it is set to "0", the node increments by 0.
var increment = Number(msg.increment || 1);
0 || 1 evaluates to 1.
The text was updated successfully, but these errors were encountered:
The same problem if msg.reset = 0, it will just ignore it. I actually haven't found any way to reset the counter to zero.
msg.reset = 0
Sorry, something went wrong.
That seems both true. I still need to look at it, sorry. For reset to it's Initial value you can use msg.reset = true;.
msg.reset = true;
0 ?? 1 would evaluate to 0 var increment = Number(msg.increment ?? 1);
var increment = Number(msg.increment ?? 1);
No branches or pull requests
If msg.increment is set to 0, the node increments by 1. I would have expected it will keep the same value.
If it is set to "0", the node increments by 0.
var increment = Number(msg.increment || 1);
0 || 1 evaluates to 1.
The text was updated successfully, but these errors were encountered: