Skip to main content

Programming concepts

Like all programming languages Variant's YAML development language is built from 6 common core concepts:

  • State: This is the stored information that is passed through the application's pipelines from any request or event.
  • Conditional flow: This determines which path a program takes, or is available, when it is running.
  • Iteration and loops: This is the repeated execution of a section of code when a program is running.
  • Exception handling: This is how your handles any errors or exceptions that arise when the application is running.
  • Code blocks / Grouped pipes: This allows users to group a serieis of pipes into a single scoped pipe containing a pipeline.

Note the above concepts mentioned in this article relate specifically to the YAML language itself and not the runtime / application in which the YAML is compiled and run in.