Dataref.value Property

The value property represents the value of this dataref.

The property's data type depends on the dataref type; it will either be a Number, String, or an Array of Numbers.

Example

> dataref = simulator.findDataref("laminar/c172/fuel/fuel_tank_selector")
Dataref{ name: "laminar/c172/fuel/fuel_tank_selector" }
> dataref.value
2
> dataref.value += 1;
undefined
> dataref.value
3

References

See the references for get() and set().