Our variables are dynamic data points that you can apply to your messages within our WhatsApp and email message editors. Each variable corresponds to a specific piece of information about the customer, order, cart, or tracking data. It’s important to note that some variables are intended only for orders, while others are specific to abandoned carts.For example:The checkout link is a variable that can be used in messages related to abandoned carts, but not in messages related to completed orders, since there is no checkout link associated with an order that has already been finalized.Because of this, when creating a message in our editors, it is essential to define the Message Type:It’s important to note that in the email editor, it is not possible to define the Message Type within the system. Therefore, messages must be created using variables according to the logic you intend to apply. Example: for a message aimed at cart recovery, cart-related variables should be used.Additionally, remember that you can access variables directly within the message editors on the platform.
In WhatsApp, simply click on the Gray + ➔ Variables:In the email editor, simply go to “Variables” in the editing toolbar:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema/docs","name":"Reportana - Documentação","colors":{"primary":"#83E479","light":"#83E479","dark":"#83E479"},"logo":{"light":"https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/reportana-logo-white.svg?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=6dd3fc9e8f107e729ca4c890ed1eb55b","dark":"https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/reportana-logo-dark.svg?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=2952776baff9388da14bd3c007999536"},"favicon":"https://mintcdn.com/reportana/9HogJxt6BTsd31jh/favicon1.svg?fit=max\u0026auto=format\u0026n=9HogJxt6BTsd31jh\u0026q=85\u0026s=04f5b837a80c9c73d0d7021de037e2bf","navigation":{"global":{},"languages":[{"language":"pt-BR","href":"pt/reportana-script/introduction/reportana-script"},{"language":"en","href":"en/reportana-script/introduction/reportana-script"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reportana","hasAudioNarration":false,"actualSubdomain":"reportana","customDomains":["reportana.dev"],"gitSource":{"type":"github","owner":"reportana","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ad6457176d10fdba79a7433","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"en","tag":"Reportana® Script","count":39},{"language":"pt-BR","tag":"Reportana® Script","count":39},{"language":"pt-BR","tag":"Executar JavaScript","count":21},{"language":"en","tag":"Execute JavaScript","count":20},{"language":"en","tag":"Filters","count":19},{"language":"pt-BR","tag":"Filtros","count":19},{"language":"en","tag":"API Documentation","count":8},{"language":"pt-BR","tag":"Documentação API","count":8},{"language":"en","tag":"Functions","count":7},{"language":"pt-BR","tag":"Funções","count":7},{"language":"en","tag":"Introduction","count":6},{"language":"en","tag":"Operators","count":6},{"language":"pt-BR","tag":"Códigos Exemplos","count":6},{"language":"pt-BR","tag":"Introdução","count":6},{"language":"pt-BR","tag":"Operadores","count":6},{"language":"en","tag":"Example Codes","count":5},{"language":"en","tag":"Structures","count":4},{"language":"pt-BR","tag":"Estruturas","count":4},{"language":"en","tag":"API Reference","count":2},{"language":"pt-BR","tag":"Referência de API","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"table{white-space:nowrap;overflow-x:auto}table::-webkit-scrollbar{width:6px;height:6px}table::-webkit-scrollbar-track{background:#e8e8e8}table::-webkit-scrollbar-thumb{background:#b7b7b7}"}]}
{"page":{"pagePath":"en/reportana-script/introduction/variables","slug":"/en/reportana-script/introduction/variables","pageMetadata":{"title":"How Do Variables Work?","description":null,"href":"/en/reportana-script/introduction/variables","hidden":false},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={br:`br`,em:`em`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{OptimizedImage}=_components;if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Our variables are dynamic data points that you can apply to your messages within our WhatsApp and email message editors. Each variable corresponds to a specific piece of information about the customer, order, cart, or tracking data. It’s important to note that some variables are intended only for `,_jsx(_components.strong,{children:`orders`}),`, while others are specific to `,_jsx(_components.strong,{children:`abandoned carts`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`For example:`}),` `,_jsx(_components.em,{children:`The checkout link is a variable that can be used in messages related to abandoned carts, but not in messages related to completed orders, since there is no checkout link associated with an order that has already been finalized.`})]}),`\n`,_jsxs(_components.p,{children:[`Because of this, when creating a message in our editors, it is essential to define the `,_jsx(_components.strong,{children:`Message Type`}),`:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=468c5c46af5a8579577e18a6dd7ac1d2`,alt:`How to change the type of the message`,\"data-og-width\":`795`,width:`795`,\"data-og-height\":`407`,height:`407`,\"data-path\":`variables1-en.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=280\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=857e383c794ff83c2ba1db330fd6ae4a 280w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=560\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=05c053dbb43ce2524f78fe845160f0c0 560w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=840\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=2e6b7bc9e09ce7909ef604d1ba5faac1 840w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=d3b85217a9f74471be656fd3084662b4 1100w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=1462ed435406731944a8d08990d10d54 1650w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables1-en.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=f91c72a9824fcd0e2bbca59defd61e46 2500w`}),`\n`,_jsxs(_components.p,{children:[`It’s important to note that in the email editor, it is not possible to define the `,_jsx(_components.strong,{children:`Message Type`}),` within the system. Therefore, messages must be created using variables according to the logic you intend to apply.`,_jsx(_components.br,{}),`\n`,_jsx(_components.em,{children:`Example`}),`: for a message aimed at cart recovery, cart-related variables should be used.`]}),`\n`,_jsxs(_components.p,{children:[`Additionally, remember that you can access variables directly within the message editors on the platform.`,_jsx(_components.br,{}),`\n`,`In WhatsApp, simply click on `,_jsx(_components.strong,{children:`the Gray + ➔ Variables`}),`:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=df5422c8a898a9e453aaadf103443c36`,alt:`How to add variables in WhatsApp`,\"data-og-width\":`892`,width:`892`,\"data-og-height\":`359`,height:`359`,\"data-path\":`variables2-en.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=280\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=bc7402e59f3432f4d7864c3dc36e0d08 280w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=560\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=788dd11284d77f883635e922a2378517 560w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=840\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=d38e8012890e8e64efc8886558b8b71d 840w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=c8a380b38004659f3a6baa7c6030b52d 1100w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=dc53d740d0bc4ec7efcd5a8e2c6061a4 1650w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables2-en.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=ada5e8faa4cc846f7f3d4eace66eeb7d 2500w`}),`\n`,_jsxs(_components.p,{children:[`In the email editor, simply go to `,_jsx(_components.strong,{children:`“Variables”`}),` in the editing toolbar:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=9af31cc34233c48f29d98ba8cffa790a`,alt:`How to add variables in Email`,\"data-og-width\":`498`,width:`498`,\"data-og-height\":`488`,height:`488`,\"data-path\":`variables3-en.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=280\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=b0fe75c69372c1f664dd314f33c0856b 280w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=560\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=d001c3e6ab1dcfe80f067486306802f6 560w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=840\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=2e27fae081a1e3a30c94099a8a5c5875 840w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=9d5708962b217f59166295f4867fdda5 1100w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=ce934a3d664eba8930072d3b0e89840a 1650w, https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/variables3-en.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=7ea18cfee5c1686e7cb8d06e12e3b676 2500w`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How Do Variables Work?","description":null,"href":"/en/reportana-script/introduction/variables","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"reportana","siteName":"Reportana - Documentação","title":"How Do Variables Work? - Reportana - Documentação","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/pt/reportana-script/introduction/variables","matchLevel":1},"en":{"href":"/en/reportana-script/introduction/variables","matchLevel":0}}},"lastModified":"2026-01-07T03:41:16.144Z","originalFileLocation":"en/reportana-script/introduction/variables.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Reportana - Documentação\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How Do Variables Work? - Reportana - Documentação\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Reportana - Documentação\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://reportana.dev/en/reportana-script/introduction/variables\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://reportana.mintlify.site/_mintlify/api/og/v2?division=Introduction\u0026amp;title=How+Do+Variables+Work%3F\u0026amp;theme=3887ef113162b886927c14c0\u0026amp;signature=41d94ffaa84d147db2e019a623eb2118ff5ecce71609b4bed7055bdc2507a72f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How Do Variables Work? - Reportana - Documentação\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://reportana.mintlify.site/_mintlify/api/og/v2?division=Introduction\u0026amp;title=How+Do+Variables+Work%3F\u0026amp;theme=3887ef113162b886927c14c0\u0026amp;signature=41d94ffaa84d147db2e019a623eb2118ff5ecce71609b4bed7055bdc2507a72f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/reportana/5Pf32OabRCkYz63K/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Reportana - Documentação\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#83E479\">\u003clink data-mint-head rel=\"canonical\" href=\"https://reportana.dev/en/reportana-script/introduction/variables\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/reportana-script/introduction/variables.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://reportana.dev/en/reportana-script/introduction/variables\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://reportana.dev/pt/reportana-script/introduction/variables\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://reportana.dev/pt/reportana-script/introduction/variables\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://reportana.dev/#organization\",\"name\":\"Reportana - Documentação\",\"url\":\"https://reportana.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/reportana-logo-white.svg?fit=max\u0026auto=format\u0026n=rrUbVfAgCraOJwnY\u0026q=85\u0026s=6dd3fc9e8f107e729ca4c890ed1eb55b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://reportana.dev#website\",\"name\":\"Reportana - Documentação\",\"url\":\"https://reportana.dev\",\"publisher\":{\"@id\":\"https://reportana.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://reportana.dev/en/reportana-script/introduction/variables#webpage\",\"url\":\"https://reportana.dev/en/reportana-script/introduction/variables\",\"name\":\"How Do Variables Work?\",\"dateModified\":\"2026-01-07T03:41:16.144Z\",\"isPartOf\":{\"@id\":\"https://reportana.dev#website\"},\"breadcrumb\":{\"@id\":\"https://reportana.dev/en/reportana-script/introduction/variables#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://reportana.dev/en/reportana-script/introduction/variables#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reportana - Documentação\",\"item\":\"https://reportana.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Do Variables Work?\",\"item\":\"https://reportana.dev/en/reportana-script/introduction/variables\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://reportana.dev/en/reportana-script/introduction/variables#article\",\"headline\":\"How Do Variables Work?\",\"name\":\"How Do Variables Work?\",\"url\":\"https://reportana.dev/en/reportana-script/introduction/variables\",\"mainEntityOfPage\":{\"@id\":\"https://reportana.dev/en/reportana-script/introduction/variables#webpage\"},\"dateModified\":\"2026-01-07T03:41:16.144Z\",\"publisher\":{\"@id\":\"https://reportana.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://reportana.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Reportana - Documentação\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Reportana - Documentação\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/reportana-script/introduction/variables.md","siteName":"Reportana - Documentação","nav":{"global":{},"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt/reportana-script/introduction/variables"}]},{"language":"en","tabs":[{"tab":"Reportana® Script","groups":[{"group":"Reportana® Script","pages":[{"title":"What is Reportana® Script?","description":"*Reportana® Script is a native template language developed to facilitate the creation of dynamic and personalized messages within the Reportana platform.*","href":"/en/reportana-script/introduction/reportana-script"}]},{"group":"Introduction","pages":[{"title":"How Do Variables Work?","href":"/en/reportana-script/introduction/variables"},{"title":"Customer Data","description":"*Available variables to print customer data in messages.*","href":"/en/reportana-script/introduction/client"},{"title":"Business Data","href":"/en/reportana-script/introduction/business"},{"title":"Order Data","href":"/en/reportana-script/introduction/orders"},{"title":"Tracking Data","href":"/en/reportana-script/introduction/tracking-numbers"},{"title":"Abandoned Cart Data","href":"/en/reportana-script/introduction/abandoned-checkouts"}]},{"group":"Operators","pages":[{"title":"In","href":"/en/reportana-script/operators/in"},{"title":"Is","href":"/en/reportana-script/operators/is"},{"title":"Math","href":"/en/reportana-script/operators/math"},{"title":"Logic","href":"/en/reportana-script/operators/logic"},{"title":"Comparisons","href":"/en/reportana-script/operators/comparisons"},{"title":"Others","href":"/en/reportana-script/operators/others"}]},{"group":"Structures","pages":[{"title":"For","href":"/en/reportana-script/structures/for"},{"title":"If / else","href":"/en/reportana-script/structures/if-else"},{"title":"Set","href":"/en/reportana-script/structures/set"},{"title":"Do","href":"/en/reportana-script/structures/do"}]},{"group":"Filters","pages":[{"title":"escape","href":"/en/reportana-script/filters/escape"},{"title":"date","href":"/en/reportana-script/filters/date"},{"title":"date_modify","href":"/en/reportana-script/filters/date_modify"},{"title":"default","href":"/en/reportana-script/filters/default"},{"title":"format_currency","href":"/en/reportana-script/filters/format_currancy"},{"title":"number_format","href":"/en/reportana-script/filters/number_format"},{"title":"join","href":"/en/reportana-script/filters/join"},{"title":"json_encode","href":"/en/reportana-script/filters/json_encode"},{"title":"length","href":"/en/reportana-script/filters/length"},{"title":"lower","href":"/en/reportana-script/filters/lower"},{"title":"map","href":"/en/reportana-script/filters/map"},{"title":"raw","href":"/en/reportana-script/filters/raw"},{"title":"slice","href":"/en/reportana-script/filters/slice"},{"title":"split","href":"/en/reportana-script/filters/split"},{"title":"title","href":"/en/reportana-script/filters/title"},{"title":"trim","href":"/en/reportana-script/filters/trim"},{"title":"upper","href":"/en/reportana-script/filters/upper"},{"title":"url_encode","href":"/en/reportana-script/filters/url_encode"},{"title":"sort","href":"/en/reportana-script/filters/sort"}]},{"group":"Functions","pages":[{"title":"find_order_by_number","href":"/en/reportana-script/functions/find_order_by_number"},{"title":"find_orders_by_email","href":"/en/reportana-script/functions/find_order_by_email"}]}]},{"tab":"Execute JavaScript","pages":[{"title":"Execute JavaScript","href":"/en/execute-javascript/introduction/introduction"}]},{"tab":"API Documentation","pages":[{"title":"API Documentation","href":"/en/api-reportana/introduction/introduction"}]}]}]},"basePath":"","title":"How Do Variables Work? - Reportana - Documentação","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BUkqX3JF.js","lightbox-handle-r17bVUz3.js"]}