Hi,
I have a config.ini
file with values of Key2
and Key3
not yet set:
When using ini
node to get the contents of file config.ini
, the value of Key2 is true even though it is not set
[{"id":"66a40383.a27bdc","type":"parser-ini","z":"f1e299b0.7d26b8","property":"payload","name":"","x":1850,"y":3040,"wires":[["aacd1328.bf48e"]]},{"id":"88685d9.39f9aa","type":"file in","z":"f1e299b0.7d26b8","name":"","filename":"/Temp/config.ini","format":"utf8","chunk":false,"sendError":false,"encoding":"utf8","x":2000,"y":2980,"wires":[["66a40383.a27bdc"]]},{"id":"66807c11.df1a34","type":"inject","z":"f1e299b0.7d26b8","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1830,"y":2980,"wires":[["88685d9.39f9aa"]]},{"id":"aacd1328.bf48e","type":"debug","z":"f1e299b0.7d26b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":2010,"y":3040,"wires":[]},{"id":"119aa9ee.339fb6","type":"function","z":"f1e299b0.7d26b8","name":"function","func":"\nif (0 === Object.values(msg.payload['Session']['Key2']).length) {\n //msg.valueKey2 = 'value not found';\n msg.valueKey2 = msg.payload['Session']['Key2'];\n}\n\nif (0 === Object.values(msg.payload['Session']['Key4']).length) {\n msg.valueKey4 = msg.payload['Session']['Key4'];\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":1960,"y":3100,"wires":[["aacd1328.bf48e"]]}]
I do not want to use function
node, can I check with any other core node, such as change
node?
Please tell me.
Thanks!