Hi everyone,
while browsing a web tab, I need to collect an amount from a page.
This amount is collected as a “string”, and contains decimals.
ex: €35.00
I need to add €15 to this string, to use it later.
I removed the € symbol with a Replace
I converted the string to INT32.
But now I don’t know how to add the 15 to this variable.
Assign activity 1:
AmountString = "€35.00" ' This is your original string
AmountString = AmountString.Replace("€", "") ' Remove the "€" symbol
Assign activity 2:
AmountInteger = Convert.ToInt32(AmountString) ' Convert the string to an integer
Assign activity 3:
AmountInteger = AmountInteger + 15 ' Add 15 to the integer
I’ve tried a few solutions.
It does not work.
I noticed that the bot collects the attribute as “€35,00”
The decimal is a comma.
I don’t know if it makes a difference.
With the solutions I tried, the total in the end is not €50 but 3515