# Get value from a nested variable

**URL:** https://www.finalbuilder.com/forums/t/get-value-from-a-nested-variable/944
**Category:** Discussion
**Created:** [August 28, 2008, 10:08am UTC](https://www.finalbuilder.com/forums/t/get-value-from-a-nested-variable/944 "2008-08-28T10:08:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 28, 2008, 10:08am UTC](https://www.finalbuilder.com/forums/t/get-value-from-a-nested-variable/944/1 "2008-08-28T10:08:21Z")

</div>

Hi,  
Imagine the following:

String "test", put it in a variable with the name 'A'

Put variable A into another variable named 'B'  
  
How can you get the String value through variable 'B' in a VBscript, with command:  
Wscript.Echo B

(Problem is that it says "%A%" instead of the String "test")  
  
Thx

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 28, 2008, 10:33am UTC](https://www.finalbuilder.com/forums/t/get-value-from-a-nested-variable/944/2 "2008-08-28T10:33:28Z")

</div>

Ah already found it, you can do it via:

Wscript.Echo Action.ExpandExpression(B)

Thx anyway

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 29, 2008, 2:44am UTC](https://www.finalbuilder.com/forums/t/get-value-from-a-nested-variable/944/3 "2008-08-29T02:44:00Z")

</div>

Hi   
  
 WScript.Echo is really just an alias for Action.SendLogMessage to make it easier to use scripts that were intended to work under wscript. Action.SendLogMessage allows you to specify a status type such as information, warning or error which affects how the value is shown in the log.
