Can't get around decision stage false evaluation

aznewton

New Member
I need some help if possible. I'm setting up an exception but while trying to do a comparison in the decision stage expression I keep getting a false evaluation. I'm using a navigation stage "global send keys" to write to a text box. The reason I'm using a navigation stage instead of a write stage the previous line of text was being overwritten and I couldn't force a "{ENTER}" in the expression. The reason for working the cases the way that I'm doing is if the text box is blank or truncated it will catch the issue and record an exception.
 

Attachments

  • Expression Test Wizard.jpg
    95.9 KB · Views: 7
  • Decision Stage Plain Text.jpg
    138.1 KB · Views: 8
  • Data Item Stage Plain Text.jpg
    126.5 KB · Views: 6

Rich

Member
Looks on the face of it that you're decision stage is expecting a NewLine() in between those 2 sentences but in the data item there isn't one. Wrapping both in a Trim() may be more robust with this too.
 

sunortap

Member
Hello aznewton,

Have you tried using Utility String - Get new line character?
There are 3 types of "Enter" in application:
Carriage Return - Cr
Line Feeder - Lf
both of above - CrLf

I think you are using Line Feeder (New Line) while in notepad there is CrLf
Please let me know if it works.
 

aznewton

New Member
Thank you, Rich and sunortap I'll give both suggestions a try once I figure out how exactly to enter it in an expression. I'm fairly new to the whole concept of RPA automation.
 
Top