node-red-contrib-chatbot icon indicating copy to clipboard operation
node-red-contrib-chatbot copied to clipboard

Matching unique keys (strict) with listen node

Open jadster opened this issue 6 years ago • 0 comments

Hi

I'm trying to set up a simple questionnaire / logic flow with button nodes (canned answers) and Listen nodes.

I thought I could work with distinct number values in the button nodes and "parse" them in one massive listen node (with 20 outputs) to determine where to continue depending on which button was last pressed.

Unfortunately it seems the listen node doesn't match numbers exactly but instead uses fuzzy logic on numbers as well. Example:

A button answer with preset value of "22" gets matched in my listen node to value "221". Despite there being another entry in the listen node with an exact match of "22", value "221" is chosen by the listen node.

Is there some way to force it into something like a "strict mode"? If not, how would you go about working with such unique "keys". Preferably without custom functions (just in order to get to know and use your set of nodes better).

thanks, John

jadster avatar Jul 29 '18 13:07 jadster