# fsVarsGetAVarId The **fsVarsGetAVarId** function can be used to get the `FsAVarId` of a specific `AVar` using its name.   ##### Syntax ``` wasm FsAVarId fsVarsGetAVarId( const char* aVarName ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|-------------------------| | `aVarName` | The name of the `AVar`. | {{< /table-wrapper >}}   ##### Return Values This function returns the ID associated with the given name. If an error occurred, the function will return 0 (SIMVAR\_NONE).   ##### Example ``` wasm FsAVarId AVarId = fsVarsGetAVarId("ATTITUDE INDICATOR PITCH DEGREES"); // valid FsAVarId wrongAVarId = fsVarsGetAVarId("toto"); // returns 0 ```