The Dataref.get() returns the value for a dataref. The return value depends on the dataref type.
This function has no parameters.
The value returned depends on the dataref type; it will either be a Number, String, or an Array of Numbers.
To determine the returned type of a dataref, read the type property.
> dataref = "laminar/c172/fuel/fuel_tank_selector"
Dataref
>
2
> dataref = "sim/aircraft/view/acf_tailnum"
Dataref
>
"N172SP"
Number values are read using: XPLMGetDatad for doubleXPLMGetDataf for floatXPLMGetDatai for intArray values are read using: XPLMGetDatavf for float arraysXPLMGetDatavi for int arraysString values are read using XPLMGetDatab; values are converted from an array of bytes to UTF strings (lossy if the bytestring does not have valid UTF8).datarefs can be used as normal variablesget