Page 1 of 1

FindAll(?) How use?

Posted: 23 Sep 2018 15:07
by boruciak
Hey,
I have a txt file with NFC TAG data:
837463
736490
435565
....
I want to make sure that the ID is in the file after the NFC card is closed.
Result: true or false
He combines but I do not know how to do it.

Uses Init Variable Text File and ????

Please help.
thank you

Re: FindAll(?) How use?

Posted: 23 Sep 2018 15:42
by boruciak
Ok.

Expression:

indexOf(id, {s})=>0

id - text.file
s - NFC TAG

Re: FindAll(?) How use?

Posted: 23 Sep 2018 16:30
by Desmanto
if you want to check some string inside another text, just use contains(). In your case, init text file first to {id}. Then your nfc is stored at {s}. Then use expression

Code: Select all

contains(id, s);
This will return true if the nfc contains the string in the text.

Re: FindAll(?) How use?

Posted: 23 Sep 2018 18:42
by boruciak
Revelation.
Simple and easy to remember :)
Thanks Desmanto!