# aircraft_varget {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsAVarGet` instead. {{< /callout >}}   The **aircraft\_varget** function retrieves the value of an aircraft simulation variable.   ##### Syntax ``` wasm FLOAT64 aircraft_varget( ENUM simvar, ENUM units, SINT32 index ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `simvar` | Specifies a simulation variable enum value. Use [`get_aircraft_var_enum`](get-aircraft-var-enum/) to retrieve the enum value from a string. | | `units` | Specifies the units enum value the returned value should have. Use [`get_units_enum`](get-units-enum/) to retrieve the enum value from a string. | | `index` | Specifies an index number, which is required for some engine and communication data. Refer to the [Simulation Variables](../../../simvars/simulation-variables/) document for details. | {{< /table-wrapper >}}   ##### Return Values The function returns the value in a FLOAT64. If the simulation variable is not found, zero will be returned.   ##### Remarks N/A