Data Types
In this section we will introduce the various data types supported by Tapicker.
Available Data Types
Tapicker supports the following six common data types:
- String
- Number
- Boolean
- Array
- Object
- Date
Next, we will explain the usage and application of each data type in detail.
String
The String type is used to represent textual data. In Tapicker, you can store any text as a string, such as extracting the text content of a web element. Strings must be enclosed in double quotes (" ") or single quotes (' ').
Example:
"Hello, Tapicker!"
'Hello, Tapicker!'
Number
The Number type is used to represent numerical values. In Tapicker, a Number can be an integer or a floating-point number, used to represent quantities, prices, percentages, and other numerical information.
Example:
123
- 123
1.23
Infinity
NaN
Infinity and NaN are also supported Number constants in Template Syntax.
Boolean
The Boolean type represents a boolean value, either True or False. In Tapicker, Boolean values are commonly used for logical control or conditional selection, helping you execute tasks based on specific conditions.
Example:
true
false
Array
The Array type is used to represent an ordered collection of values. In Tapicker, an Array can contain multiple data types such as String, Number, Boolean, or even other Arrays. Arrays are typically used to store multiple similar data items, such as multiple URLs or numbers.
Example:
["item1", "item2", "item3"]
[10, 20, 30]
Object
The Object type represents a collection of key-value pairs, similar to an object in JavaScript. In Tapicker, Object is used for handling complex data structures and nested data. Each key corresponds to a specific value, which can be a String, Number, Boolean, Date, Array, or another Object.
Example:
{
"name": "John Doe",
"age": 30,
"isActive": true
}
Date
The Date type represents a date and time value. Date values are stored as JavaScript Date objects and can be formatted, converted to timestamps, or used with date pipeline functions.
Example:
2026-01-02 03:04:05
You can also create a Date value in Template Syntax with getDate() or toDate, for example {{getDate()}} or {{$vars.dateText|toDate}}.
Conclusion
Tapicker supports six basic data types: String, Number, Boolean, Array, Object, and Date. These types provide you with various ways to handle and store data extracted from web pages. By effectively using these data types, you can manage your data more efficiently and perform operations according to specific needs.