I have a condition in my workflow that I am expecting to return true, but it is returning false. Was hoping someone can tell me what I am doing wrong.
The objective of this workflow is to determine if there are any gaps in the Voucher Reference Numbers within a folder.
Here is a part of the workflow...
The Voucher Reference Number is a string so the first thing I do is convert it to a number. The first activity looks like this...
Notice I am defining the token as a Number.
The last activity in the list is assigning the converted Voucher Reference Number to another token so it can be used in the next iteration.
Here is that activity...
The condition is comparing the converted Voucher Reference Number to the previous Voucher Reference Number to make sure it is one higher.
The example below shows the previous Voucher Reference Number is 49983 and the current Voucher Reference Number is 549050. I would expect the condition to be true but it is not...
Here is the activity condition...
And here is what it looks like when it is run...
What am I doing wrong?