GetText result is different from what it looks like

Hi, Forum

Can anyone explain how this can happen?

image

The “ReadMonthNumber” is the result of GetText activity and it looks like “2”.
But, it’s not actually “2” as you see above.

Why is it so and how can I get actual “2” ?

Regards

@HongJoo_Choi

Are Inverted comma also retrieved in get text if ao try returnnumber is """2"""

Or is readmonth number is of variable type integer then use without inverted comma directly as 2

Cheers

Hi @HongJoo_Choi

If your input is “2” that there is double quotes in both sides of 2 as you shown.
Then try to write condition as below,

ReadMonthNumber is """2"""

Check the below image for better understanding,
image

Hope it helps!!

The Is operator determines if two object references refer to the same object.

(Is operator - Visual Basic | Microsoft Learn)

Try with “=” instead.