﻿---
title: Scripts
description: Scripts are composed of one-to-many statements and are run in a sandbox that determines what local variables are immediately available along with what...
url: https://www.elastic.co/elastic/docs-builder/docs/2407/reference/scripting-languages/painless/painless-scripts
products:
  - Painless
---

# Scripts
Scripts are composed of one-to-many [statements](https://www.elastic.co/elastic/docs-builder/docs/2407/reference/scripting-languages/painless/painless-statements) and are run in a sandbox that determines what local variables are immediately available along with what APIs are allowed.