Yes, i need to identify the path and display the message.
[{"id":"8c77fcbd.3d439","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"b4f62510.3688e8","type":"EMOTIV","z":"8c77fcbd.3d439","name":"EMOTIV","x":400,"y":340,"wires":[["78519482.28511c"]]},{"id":"78519482.28511c","type":"Profile-Name","z":"8c77fcbd.3d439","name":"Profile Name","profileName":"new","x":590,"y":340,"wires":[["686c6c7e.3f1bc4","2eeb385e.ad4418"]]},{"id":"7854bb6a.6e8494","type":"debug","z":"8c77fcbd.3d439","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1730,"y":320,"wires":[]},{"id":"2eeb385e.ad4418","type":"Facial-Expression","z":"8c77fcbd.3d439","name":"Facial Expressions","action":"clench","sens":"800","x":900,"y":280,"wires":[["f5cafe90.b61bf"]]},{"id":"686c6c7e.3f1bc4","type":"Facial-Expression","z":"8c77fcbd.3d439","name":"Facial Expressions","action":"frown","sens":"800","x":890,"y":460,"wires":[["e9fe3385.89298"]]},{"id":"2bc7253e.f0811a","type":"function","z":"8c77fcbd.3d439","name":"","func":"if (msg.payload.clench = 0 ) {\n msg.payload = \"clench signal\";\n}\nelse if (msg.payload.frown = 0) {\n msg.payload = \"frown signal\";\n}\nelse {\n return null;\n}\nreturn msg;","outputs":1,"noerr":0,"x":1490,"y":380,"wires":[["7854bb6a.6e8494"]]},{"id":"f5cafe90.b61bf","type":"switch","z":"8c77fcbd.3d439","name":"clench","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"80","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1090,"y":260,"wires":[["38ae06c3.245fda"]]},{"id":"e9fe3385.89298","type":"switch","z":"8c77fcbd.3d439","name":"frown","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"80","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1070,"y":460,"wires":[["f8a80587.a04d38"]]},{"id":"f8a80587.a04d38","type":"change","z":"8c77fcbd.3d439","name":">80 (frown)","rules":[{"t":"set","p":"topic","pt":"msg","to":"frown signal","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1250,"y":460,"wires":[["2bc7253e.f0811a"]]},{"id":"38ae06c3.245fda","type":"change","z":"8c77fcbd.3d439","name":">80 (clench)","rules":[{"t":"set","p":"topic","pt":"msg","to":"clench signal","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1250,"y":260,"wires":[["2bc7253e.f0811a"]]}]
I've added the change node. Is the change needed to be added like this? I'm not sure whether it is correct or not and there is still no any message displayed.