08-24-2020 03:04 AM
Hi guys
I don't understand why my IF statement is not working. From the function I declare the variable "Word0 = Step.Result.String"
Which yields "CAFE" in HEX
I then use an IF statement to check the first two HEX of the Word0;
Why is my IF statement returning false? As far as I understand, the syntax yields "no errors" and should check the Word0 for the First Two letters, to see if the word has 'CA' in the beginning, which it does
If Statement should yield "true"
BR Andedam. Really hope some1 can enlighten me
08-24-2020 06:31 AM
Hi,
The statement as is written above is correct so, the error should be somewhere else.I have isolated it in this example and it works for me.
Can you confirm that works for you as well?
08-24-2020 06:59 AM
Hello again
Yes that sequence file is working for me. That's werid tho...
08-24-2020 07:04 AM
Seems like the output comes with a space at the end
If I change the condition to the word being 5 characters, it seems to be working.
What would be the easiest way of getting rid of the space characteR?
Thank you in advance !
08-24-2020 07:17 AM
You can remove the last character of a string variable with this expression:
Locals.MyVariable=Left(Locals.MyVariable,Len(Locals.MyVariable)-1)