BlocksOperations & Manipulation
Access Length
Count the number of items in an Array or characters in a String.
Access Length Block
The Access Length Block is a simple utility that calculates the length of an Array or the number of characters in a String, and stores the numeric result in a variable.
Configuration
| Field | Required | Description |
|---|---|---|
| Input Data | ✅ | The string or array you want to measure. Can be a literal or a variable (e.g., {myArray}). |
Output Variable
Specify a Variable Name to store the result.
Success Payload
Depending on the operation, the output will be either a number (e.g., for get_length) or a string (e.g., for character_at, slice, substring).
42(Note: It returns a raw number or string, not an object.)
Errors & Responses
If an error occurs, the variable will be populated with:
{
"error_key": "ACCESS_INPUT_MISSING",
"error_message": "Input string is required."
}Common Error Keys: ACCESS_INPUT_MISSING, ACCESS_VAR_MISSING, ACCESS_RUNTIME_ERROR
