Hello All,
My Doubt/Question here is, there is a practice test in academy were i designed the flow and it works as excepted, but some methods and functions usage gives me wrong result.
i’m not sure whether this question is correct tor not, since i’m beginner to UiPath and related to codes too
Expected result is:-
when i give the below in 1st if condition.
Not IsNumeric(Row(“Cash In”).ToString) And Not IsNumeric(Row(“Cash out”).ToString)
and in 2nd if condition as,
Int32.TryParse(Row(“Cash In”).ToString,0)
the below is the correct result
were i have the values that contains some alphabetical letters either in col1 and col2 or col 1 alone and vice versa.
Variables that i declared:
ConvertCashIn= cint(Row(1).ToString)
ConvertCashOut= cint(Row(2).ToString)
Month | Cash In | Cash out | Difference | Status |
---|---|---|---|---|
May-15 | 15 | 241 | -226 | Correct |
Jun-15 | 77 | 90 | -13 | Correct |
Jul-15 | 64 | 44 | 20 | Correct |
Aug-15 | 13K | 130 | NA | Cash In value is incorrect |
Sep-15 | 144 | 78 | 66 | Correct |
Oct-15 | 160 | 150K | NA | Cash out value is incorrect |
Nov-15 | 14O | 13 | NA | Cash In value is incorrect |
Dec-15 | 33 | 49 | -16 | Correct |
Jan-16 | 134 | 169 | -35 | Correct |
Feb-16 | 37K | 5K | NA | Both the values are incorrect |
Now, i get the wrong result when i use this in condition as,
Please assist me on this, whether i override the rules or not due to which i’m not getting the output with other possibility.