Run If - Begins With Bug???

  • 31 March 2015
  • 3 replies
  • 0 views

Badge +2

I am trying to do a Run If where the criteria is Begins With

 

The input string is as follows (exluding quotes)

" Error : This is important"

Note the starting space.

 

The Begins With Criteria is:

" Error :"

 

It fails the Run IF.

 

If I remove the starting space on both input and begins with, it Passes

If I remove the space before the : on the input and begins with, it Passes

 

It seems if the string begins with a space and has another space, it fails.

 

Is this normal behaviour.  I had to do a replace of all spaces with _ then do the comparison.  The space in front was important for me to keep.

 

Thanks


3 replies

Badge +11

Try removing the spaces and put in a variable before Run If.

Badge +2

Yeah, there are several ways to get around this.  I was hoping to find out if this was expected behaviour or a bug.

Cheers

Badge +11

I'm not sure why it is doing that.

Reply