I am trying to process a data base.
The idea is that if an item from colulmn A contains a certain word (let’s say “bar”), it should read the data of column B (an integer)
My problem is just to understand how to write the condition in an if activity ? When I write Variable1.contains(“bar”), I get an error as it’s a generic value variable and not string.
It doesn’t work with Variable1.ToString.contains(“bar”) either …
Furthermore, if the condition is met multiple times through the database, it should add the values of column O and no overwrite them.
I’m very sorry but the attached file says “Activities could not be loaded but of errors in XAML”.
Anyway, I think my problem comes from the fact that i have Null values in some rows of my database and that’s why it can’t go trough it with a éfor each row" activity.
During the Foreach, when no value send to the variable, do you know how to get to the next row and continue the loop ?
@lemoinethomas , i am assuming it would be throwing an error while establishing connection to the database. Below is the screenshot of the For each loop. Dt1 is the datatable for me.
Do you know if there is a way for my to write this info in a cell from another excel file ?
This trick would be be to add the values in that cell.
In your example, it would be to write in a cell the sum of the ages of all the people whose name starts with “A” for example.