# How to get all defined variables?

**URL:** https://www.finalbuilder.com/forums/t/how-to-get-all-defined-variables/1297
**Category:** Discussion
**Created:** [August 24, 2009, 7:46am UTC](https://www.finalbuilder.com/forums/t/how-to-get-all-defined-variables/1297 "2009-08-24T07:46:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [August 24, 2009, 7:46am UTC](https://www.finalbuilder.com/forums/t/how-to-get-all-defined-variables/1297/1 "2009-08-24T07:46:45Z")

</div>

Hi,

In a Run&nbsp;Script action I want to iterate over all defined variables in JavaScript.&nbsp;&nbsp;Is there an array I&nbsp;can access that has all the currently defined variables?

&nbsp;

Thanks!

-Nelson

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [August 24, 2009, 8:13am UTC](https://www.finalbuilder.com/forums/t/how-to-get-all-defined-variables/1297/2 "2009-08-24T08:13:22Z")

</div>

In addition to currently defined variables, is it possible to access the variable description and/or group?

Thanks!

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [August 25, 2009, 1:35am UTC](https://www.finalbuilder.com/forums/t/how-to-get-all-defined-variables/1297/3 "2009-08-25T01:35:13Z")

</div>

Hi Nelson,   
  
 There isn’t really a good way of doing this except for using the Log Variables action to write all the variables to a variable then parsing it to extract the names.   
  
 Regards,   
 Paul.
