Kestra, Open source declarative data orchestrationKestra, Open source declarative data orchestration
  • Product
    • Features
      Discover all the features of Kestra

    • Enterprise Edition
      Security and High Availability for enterprise

    • Declarative Orchestration
      Simplified data workflow creation and execution with YAML

  • Solutions
    • Usages & Use Cases
      Uncover a wide range of use cases

    • CI/CD for your Kestra Workflows
      Treat your workflow as code and embrace CI/CD practices

    • Modern Data Stack Integration
      Integrate leading data tools with Kestra

    • Change Data Capture
      Leverage Kestra's Change Data Capture capabilities

  • Docs
    • Documentation
      Get started with Kestra

    • Plugins documentation
      Extends Kestra with many plugins

  • Community
    • Community Overview
      Connect with peers and exchange ideas

    • Blogs
      Product updates, user stories, and more

  • Company
    • About us
      Discover our story and our team

    • Careers
      Join an open company

    • Contact us
      Extends Kestra with many plugins

  • Star us Book a demo Get Started Search
  • 👁️‍🗨️ Overview
  • 🚀 Getting started
  • 🤓 Tutorial
    • Fundamentals
    • Inputs
    • Outputs
    • Triggers
    • Flowable
    • Errors and Retries
    • Docker
  • 💡 Concepts
    • Flow
    • Execution
    • Variables and storage
  • 🖥️ User Interface Guide
    • Home Page
    • Flows Page
    • Templates Page
    • Executions Page
    • Logs Page
    • Documentations Page
    • Settings Page
    • Task Runs Page (EE)
    • Namespace Page (EE)
    • Users Page (EE)
    • Groups Page (EE)
    • Roles Page (EE)
    • Audit Logs Page (EE)
  • 🧑‍💻 Developer Guide
    • Flows
    • Tasks
    • Variables
      • Basic Usage
      • Filter
        • abbreviate
        • abs
        • base64decode
        • base64encode
        • capitalize
        • chunk
        • className
        • date
        • dateAdd
        • default
        • first
        • join
        • jq
        • json
        • keys
        • last
        • length
        • lower
        • merge
        • number
        • numberformat
        • replace
        • reverse
        • rsort
        • sha256
        • slice
        • slugify
        • sort
        • split
        • substringAfter
        • substringAfterLast
        • substringBefore
        • substringBeforeLast
        • timestamp
        • timestampMicro
        • timestampNano
        • title
        • trim
        • upper
        • urlencode
      • Function
        • block
        • currentEachOutput
        • json
        • max
        • min
        • now
        • parent
        • range
        • secret (EE)
      • Operators
        • Comparisons
        • concat
        • contains
        • is
        • Logic
        • Math
        • not
        • Null-Coalescing operator
        • Ternary operator
      • Tags
        • block
        • filter
        • for
        • if
        • macro
        • raw
        • set
      • Tests
        • defined
        • empty
        • even
        • iterable
        • json
        • map
        • Null
        • odd
      • Deprecated Handlebars
        • Boolean functions
        • Date functions
        • Iterations functions
        • JSON functions
        • Number functions
        • String functions
        • Use variables
        • Vars functions
    • Inputs
    • Outputs
    • Data storage and processing
    • Errors and retries
    • Triggers & schedule
      • Schedule
      • Flow trigger
      • Webhook
    • Templates
    • Listeners
    • Conditions
    • Flow best practice
    • Create a CI/CD pipeline
      • GitHub
      • GitLab
      • Terraform
      • Helpers
  • 🔌 Plugin library
  • 🔎 Flow examples
    • Allow failure
    • Bash Docker with files
    • Bash with files
    • Disable simple
    • Each nested
    • Errors
    • Example guided tour
    • Multiple condition listener
    • Parallel
    • Pause
    • Python pip
    • Retry
    • Sequential
    • Subflow
    • Switch
    • Timeout
    • Trigger flow
    • Webhook
  • 📝 Architecture
  • 🔑 Administrator Guide
    • Configuration
      • Database configuration
      • Storage configuration
      • Kestra Enterprise Edition
        • Authentications
          • Auths
            • Open Id Connect (OIDC)
        • Elasticsearch configuration
        • Kafka configuration
        • License configuration
        • Secret Manager configuration
          • Elasticsearch configuration
          • Vault configuration
        • Worker Isolation configuration
      • Micronaut configuration
      • Others Kestra configuration
    • Installation guide
      • Deployment with Docker
      • Deployment on Kubernetes
      • Manual deployment
      • Deployment on AWS with Restack
    • Monitoring & Alerting
      • Debugging techniques
    • Kestra server command
  • 🧩 Plugin Developer Guide
    • Gradle configuration
    • Develop your RunnableTask
    • Develop your FlowableTask
    • Develop your Trigger
    • Develop your Condition
    • Add unit tests
    • Outputs & Metrics from a script engine
    • Document your plugin
    • Publish a plugin
    • Build a plugin
  • ⚡️ Terraform integration
    • Data Sources
      • kestra_binding
      • kestra_flow
      • kestra_group
      • kestra_namespace
      • kestra_role
      • kestra_template
      • kestra_user
    • Guides
      • Provider configurations
      • Working with Yaml
    • Resources
      • kestra_binding
      • kestra_flow
      • kestra_group
      • kestra_namespace_secret
      • kestra_namespace
      • kestra_role
      • kestra_template
      • kestra_user_password
      • kestra_user
  • 📝 Api Guide
  • 🔧 Contributing
DOCSDEVELOPER-GUIDEVARIABLESTESTDEFINED

defined

Contribute
  • Edit this page
  • Join us on Slack
  • GitHub
  • Twitter
  • LinkedIn

The defined test checks if a variable is defined.

twig
{% if missing is not defined %}
    ...
{% endif %}
VariablesTests
Testempty
Kestra's logo

Open Source Declarative Data Orchestration

Product
  • Features
  • Connectors
  • Enterprise Edition
Solutions
  • Usages
  • For Companies
Community
  • Blogs
  • Slack
  • Github
Docs
  • Documentation
  • Plugins documentation
  • Terraform provider
  • Administrator guide
Company
  • About us
  • Careers
  • Contact us

© 2023 Kestra Technologies. Developed with in the 🌎.

Privacy Policy / Cookie Policy

Slack