# get_aircraft_var_enum {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsGetAircraftVarId` instead. {{< /callout >}}   The **get\_aircraft\_var\_enum** function retrieves the enum value for a simulation variable, given the string name of that variable.   ##### Syntax ``` wasm ENUM get_aircraft_var_enum( PCSTRINGZ simvar ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|-----------------------------------------| | `simvar` | Specifies the simulation variable name. | {{< /table-wrapper >}}   ##### Return Values The function returns the ENUM value of the simulation variable, or `SIMVAR_NONE` (0) if the variable name is not found.   ##### Remarks Use this function before calling `aircraft_varget`.