The type
property returns the data type that will be read from and should be written to this dataref. It is always number
, string
, or array
.
> dataref = "laminar/c172/fuel/fuel_tank_selector"
Dataref
> dataref.type
"number"
XPLMDataAccess
section on Dataref Types provides a bit more background on the types that datarefs have under the hood.