How to check if the key's value exists or not

Wow. Wonderful!!!
I have tried many different patterns with the correct results.
I don't think you can handle something like that either :open_mouth:
I am extremely grateful!

1 Like

No problem, happy to help

This is fix for if end is key4[EOF]

[{"id":"47d5a245.2d2b3c","type":"change","z":"7760f563.ea0324","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$join(\t   $map(\t       $split(payload, \"\\n\"),\t       function($v){\t            $contains($substring($trim($v), 0, 1),/#|\\[/) or \t            $count($split($v,\"=\")) > 1 or \t            $trim($v) = \"\" \t            ? $v : ($substring($trim($v), -5) != \"[EOF]\" ? $v & '=' : $split($v, \"[EOF]\")[0] & '=[EOF]')\t       }\t    ),\t   \"\\n\"\t)\t\t\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1720,"wires":[["d6d6a27b.5b5538","7f27e2e4.a94a1c"]]}]
2 Likes

I wanted to thank you for helping me today.
Have a nice day!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.