# GetCloudDataVariable

## Description

Returns the value of a cloud data variable by name. If the variable does not exist then the default value passed in will be returned instead. If you are calling this command from Tier 2 then you must delete the returned string when you are done with it by calling agk::DeleteString.

## Definition

string GetCloudDataVariable( varName, defaultValue )

char* agk::GetCloudDataVariable( const char* varName, const char* defaultValue )

## Parameters

- varName - The name of the variable to check, must be less than 64 bytes
- defaultValue - The value to return if the variable doesn't exist