If activity on integer

Hi all,

I need help with an if activity. Firstly, I have a column of data that I want to use the if activity on.
I want to put the condition so that if the number found in each row of the column of data is below 9.10, a new column will write a certain word.

Thanks!

You can write an assign statement to check and assign the value.
image
To: dtInputData.Rows(intIndex).Item(“New_Column”)
Value: if((Convert.ToDecimal(dtInputData.Rows(intIndex).Item(“Number_Column”).ToString) > 9.10), “Update text”, dtInputData.Rows(intIndex).Item(“New_Column”).ToString)

This checks whether number column value is greater than 9.10. If yes, updates the New column with the given text, otherwise, reassigns the New column value (To retain the same value if there any. Based on your requirement you can leave this blank as well).
intIndex is the index of your row.

Hi @Madhavi ,
is there any sample that I can see?

Thanks!

Sample.xaml (8.6 KB)

Untitled spreadsheet.xlsx (3.6 KB)
Refer this @jasperlzx

I need to pass column H as either Late/Not Late based on the value of the Time In. If its above 9.10, it would be late.

Thanks!

Refer this Sample.xaml (8.8 KB) and let me know if it works @jasperlzx

Hi, I did what you wrote in the sample file, and I receive this error message :If : Column ‘Time In’ does not belong to table。

Any idea on how can I solve it?

Thanks!

@jasperlzx Here you go…
ColumnComparisionAndUpdating.xaml (12.0 KB)

Untitled spreadsheet (2).xlsx (6.8 KB)Sample.xaml (9.5 KB)
@jasperlzx

image

Got this error now…

The column does not contain any values,Can you share your workflow and excel file(or) Try to make change in this file and executeSample.xaml (9.0 KB) @jasperlzx

Now I get this error, but I do have this column as shown above

Give space “Time In”.There is space inbetween in your excel file @jasperlzx

I removed the space for both files and it won’t work as well

Did u provide the columnname in ’ '?Change it to " " (Or) send me the excel file I’ll make changes and upload the solution @jasperlzx

Template for Individual Attendance Report.xlsx (9.6 KB)

Thanks!

@jasperlzx,Sample.xaml (9.7 KB)
Modified it with your excel file,Your excel file contains headers in the second row so it was unable to find the ‘TimeIn’.Let me know if it works

Hi,

For the get row item, how do you get the term “row” ? is it a variable or?

Thanks!

@jasperlzx Did you try the xaml I sent? I have handled the blank row case as well.

sample

Row is each row item from the datatable.It is user defined @jasperlzx