Table and Variables
Table and Variables
Tables and variables serve the same purpose of storing values from a web page, but there are some key differences between the two.
Data Types
Each column in a table has a strict data type. For example, when you extract text and want to insert it into a column with the text
data type, the value will be converted to text before being inserted into the column.
In contrast, variables are not bound to any specific data type. This means you can store text, numbers, objects, or arrays in a variable without the need for conversion.
Data Insertion
Every time you insert a value into a table, the value will be pushed to the last row of the selected column.
For example :
Ao thin
1000
Quan dai
2000
After inserting a new value :
Ao thin
1000
Quan dai
2000
5000
But in a variable, the value will be overwritten with the new value.
Last updated