Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

how to compare datatable from number

can you please advise how to compare values of datatable to a number variable. thanks


Best Answer

Hi,


Data tables contain data in a tabular form,

A data table contains rows and columns and each item stored in the data table can be retrieved through its unique row and column number.


In order to retrieve a specific item of a data table, you will have to use the following notation: 

%VariableName[RowNumber][ColumnNumber]%

Keep in mind that “RowNumber” and “ColumnNumber” should be 0 for the first item (row or column), 1 for the second and so on. 


For example, if you have a data table that is stored in the variable %MyDataTable%, you can retrieve the first item with: %MyDataTable[0][0]%. 


Now by using If Condition, you can compare, just by entering Data table element  (for example %MyDataTable[0][0]% in one operand and Number variable in 2nd Operand.

1 Comment

ADMIN
Answer

Hi,


Data tables contain data in a tabular form,

A data table contains rows and columns and each item stored in the data table can be retrieved through its unique row and column number.


In order to retrieve a specific item of a data table, you will have to use the following notation: 

%VariableName[RowNumber][ColumnNumber]%

Keep in mind that “RowNumber” and “ColumnNumber” should be 0 for the first item (row or column), 1 for the second and so on. 


For example, if you have a data table that is stored in the variable %MyDataTable%, you can retrieve the first item with: %MyDataTable[0][0]%. 


Now by using If Condition, you can compare, just by entering Data table element  (for example %MyDataTable[0][0]% in one operand and Number variable in 2nd Operand.

Login or Signup to post a comment