08-21-2020 04:01 AM
Hello folks
I am currently trying to implement an IF condition for my sequence.
I use a function to extract this byte, which I save in a fileglobal as "Word0", as shown here:
I then want to take this IF condition, but it seems like I am using the wrong syntax
Neither of this seems to be working, as the IF statement evaluates FALSE in the report.
What am I doing wrong? I saved the Word0 as a FileGlobal and String.
Thank you in advance! BR Andedam 🙂
08-21-2020 12:24 PM - edited 08-21-2020 12:28 PM
We might need more clarification on what you are trying to do. But this is my answer based on some assumptions.
Are you saying that the string should show true if its "00039475" OR "0003 9475"? Because your code is doing an AND, and that will always be false. You should put || instead of && in the IF Statement.
FileGlobals.Word0 == ("00039475" || "0003 9475")
The other thing you could do is get rid of whitespace in your string: SearchAndReplace().