# fsVarsGetAircraftVarId {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsGetAVarId` instead. {{< /callout >}} The **fsVarsGetAircraftVarId** function can be used to get the `FsSimVarId `of a specific SimVar using its name.   ##### Syntax ``` wasm FsSimVarId fsVarsGetAircraftVarId( const char* simVarName ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |--------------|-------------------------| | `simVarName` | The name of the simvar. | {{< /table-wrapper >}}   ##### Return Values The function returns the right Id associated to the given name. If an error occurred, the function will return 0 (SIMVAR\_NONE).   ##### Example ``` wasm FsSimVarId simvarId = fsVarsGetAircraftVarId("ATTITUDE INDICATOR PITCH DEGREES"); // valid FsSimVarId wrongSimVarId = fsVarsGetAircraftVarId("toto"); // returns 0 ```