I have a list that lists transactions of a bank account, the strings are formatted as:
("Withdrawn" + amount)
("Deposited" + amount)
they look like
Withdrawn 200
Deposited 200 etc..
In the list, I'm meant to created a method that finds the suspicious activity which is defined as withdrawing between 100 and 150, so I use .Contain("withdrawn")
to find each element with the word withdrawn in but then how do I find which have the amount between 100 to 150?
They're string types so how do I do something like If ( 100 > amount > 150)
when they're string types?
Do I try to trim the string and parse/.convertall the digit string part to Int?
Any help?