Error in validating whether 2 variables are valid

Hi all,
currently I am using a flow decision to see if those two are equal to one another:
image

Despite both values being the same, for some reason the flow decision always identifies it as False:
image
Any takes on what could be the error? Cheers

Hi @SRoyi

Use equals or contains method instead of that.

1 Like

Hi @SRoyi

Try this
dept_inRMS_Doc.ToString.Contains(dept_in_OutExpired.ToString)

1 Like

Hi @SRoyi

I think there might be a space
Use Trim Function of both sides and try validating

Hope it helps!!

1 Like

@SRoyi

Try giving

dept_inRMS_Doc.Tostring.tolower.Trim = dept_in_outExpired.Tostring.tolower.Trim

Hope it works!!

1 Like

Hi,

Use the Syntax as follows,

dept_inRMS_Doc.ToString.Trim.Equals (dept_in_outExpired).ToString.Trim

I hope it works

1 Like

@SRoyi

If you find the solution for your query please mark as solution to close the loop.

Regards

1 Like

Thanks for the help rlgandu! It worked perfectly as I wanted.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.