condition.empty

Checks that the data didn't get a value. If it did, returns false. This is useful if you need to check the optional template data (data.*) or make sure that a Toloker didn't interact with the data entry fields (fields.*).

The component checks that the value of the sent data is equal to a zero-length string, an array without elements, an object without keys and values, or is equal to null.

View example

Component properties

NameTypeDescription
type*"condition.empty"Set component type.
dataanyData to check. If not specified, data is checked in the component that contains condition.empty.
hintstringValidation error message that a Toloker will see.
Contact support
Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
Frequently asked questionsTroubleshootingSupportGlossary