# GetVariable()

Gets the variable referenced by the given string; supports using "." for structures/scopes.

```
GetVariable( name=string );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| name | string | Yes | Name of the variable to return, supports using "." for structures/scopes. |  |

# Examples

```1
	str="susi";
	writeOutput(getVariable('str'));
	
	setVariable('session.AAA', "Hello docs reader");
	dump(getVariable("session.AAA"));
	dump(getVariable("session"));
```







# Categories

[Scopes](../../categories/scopes.md)

# See Also

[SetVariable()](setvariable.md)