# TryGetVariable

## TryGetVariable(long, out Variable)

public bool TryGetVariable(long id, out Variable variable) ;

### Description

Get Variable of `id`.

### Parameters

Parameter Name | Description
--- | ---
id | ID
variable | Found Variable

### Returns

Returns true if Variable of `id` exists. Otherwise returns false.

## TryGetVariable(string, out Variable)

public bool TryGetVariable(string name, out Variable variable) ;

### Description

Get Variable with the name specified by `name`.

### Parameters

Parameter Name | Description
--- | ---
name | Name
variable | Found Variable

### Returns

Returns true if a Variable with the name specified by `name` exists. Returns false otherwise.