Accessing Elements in a Table

table

#1

I am currently trying to access an element in a table by position. I know that there is a syntax ${list_name[list_index as Integer]}. I’m just wondering if there is a similar syntax available for accessing positions in a table? Would ${table_name[column_value as Integer][row_value as Integer]} find a specific element?


#2

HI Ashton,

You can do it with the help of a simple custom script

@CustomScriptAction(
    input = ['table'],
    output = 'cell'
)
 
def customScript() {
     def cell = table.get(2,3)
}

2 is the row
3 is the column