cancel
Showing results for 
Search instead for 
Did you mean: 

decision stage

SamLima
Level 7
1109.png
what does it mean to compare a text with a number?


------------------------------
Sam Lima
------------------------------
1 BEST ANSWER

Helpful Answers

PabloSarabia
Level 11
Hi @SamLima

When you use a decision stage, its compare the data and the data type.

In this case, if you want to compare text against a number, you always return a False Flag. Even if you put "5" = 5 ​you get a False Flag.

In this cases, if you want to make a good comparation, you must to use "ToNumber()" function. (And also combine this with "IsNumber()" function to check first if the string can be converted to number)


Hope this helps you!

See you in the community, bye 🙂

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

View answer in original post

2 REPLIES 2

SamLima
Level 7

@devneetmohanty07

Could you please help



------------------------------
Sam Lima
------------------------------

PabloSarabia
Level 11
Hi @SamLima

When you use a decision stage, its compare the data and the data type.

In this case, if you want to compare text against a number, you always return a False Flag. Even if you put "5" = 5 ​you get a False Flag.

In this cases, if you want to make a good comparation, you must to use "ToNumber()" function. (And also combine this with "IsNumber()" function to check first if the string can be converted to number)


Hope this helps you!

See you in the community, bye 🙂

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------