labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
    • Services
  • Technology
    • Feature Overview
    • Code-Free Study Building
    • Eye Tracking
    • Mouse Tracking
    • Generative AI Integration
    • Multi User Studies
    • More ...
      • Reaction Time/Precise Timing
      • Text Transcription
      • Heart Rate Detection (rPPG)
      • Emotion Detection
      • Questionnaires/Surveys
      • Experimental Control
      • Data Privacy & Security
      • Desktop App
      • Mobile App
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Licenses
    • Top-Up Recordings
    • Subject Recruitment
    • Study Building
    • Dedicated Support
    • Checkout
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
    • Third-Party Licenses
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Guide
    • GETTING STARTED

      • Task Editor
      • Stimulus Presentation
      • Correctness of Response
      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Randomization & Balance
      • Eye Tracking
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • License & Services
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Task Controls
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Settings
      • Variables
      • Media
      • Texts & Translate
      • Launch & Participate
      • Subject Management
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setup
  • FAQ
    • Features
    • Support Policy & Guidelines
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Newsletter Archive
  • Documents
  • Classroom
Illustration of the event system in Labvanced.

Variables

Variables are the mechanism through which your experiment stores, reads, and acts on data at runtime. Inside the task editor, every variable used on the currently selected frame is accessible from the Variables panel tab, and every event action that reads or writes a value does so through a variable. Understanding where variables live in the editor and how the event system interacts with them is essential for building any study that records responses, times reactions, adapts to participant behavior, or controls experiment flow.

Further reading

Working with Variables

The hub page for all variable documentation: types, properties, recording options, and data frames.

Creating Variables

The four ways to create a variable: Variables tab, task editor panel, object prompt, and event system.

Variable Types

A reference for all six variable types: system, factor, object, custom, array, and data frame.

Variable Properties

A full reference for every variable setting: data type, format, scale, and recording options.

Deleting Variables

How to safely remove a variable from your study without breaking event logic or data recording.

Locating Variables in the Task Editor

Within the task editor, the variables used on the currently selected frame are listed under the Variables panel tab in the top-right corner. Each variable is shown with its main category, data type, and name.

Variables panel in the Labvanced task editor

From here you can:

  • Click a variable to open its properties on the right side and edit its settings.
  • Click + New Variable to create a variable directly from the panel. See Creating Variables for all the ways to do this.
  • Copy or delete a variable using the icons next to its name. Before deleting, check Deleting Variables to avoid breaking your study.

For a full reference of what each property means, see Variable Properties.

Variables and Events

A variable change can trigger an event, and an event can change a variable value. Variables can also directly change the state of objects: for example, if a variable value equals X, display image Y. Combined with events, variables control experiment flow: if a participant scores above a threshold in task A, proceed to task B, otherwise proceed to task C.

The Value Select Menu

Whenever an event action requires a variable, the Value Select Menu opens. It lets you choose an existing variable or create a new one on the spot. For a full walkthrough of how it works, see Value Select Menu.

Recording Data

For system, factor, and object variables, recording is enabled by default. For custom variables you create yourself, you need to enable Record Variable in the variable properties and use the event system to write the value at the right moment.

Example: Recording Reaction Time

  1. Add an image to the frame.
  2. Create a new event.
  3. Set the trigger: User Input → Mouse Trigger → Click → Left button → target Image_1.
  4. Set the action: Variable Actions → Set / Record Variable → click Select.
  5. In the Variable-Selection Menu, go to New Variable. Name it (e.g. rt_image_click), set Data Type to Numeric, enable Record, enable Reset. Click Ok.
  6. Click the Value-Select icon → Trigger (Mouse) → Time From Frame Onset. Click Finish.

The reaction time from frame onset is now recorded each time the participant clicks the image.

Prev
Object Property Tables
Next
System Variables Tables