Nasal library: Difference between revisions

no edit summary
(→‎contains(): Fix wrong variable name in example (copy&paste error))
No edit summary
Line 1,604: Line 1,604:
:* Two numbers separated by a comma, as if the function is taking three arguments. Example: <code>findNavaidsWithinRange(lat, lon, range, type);</code>.
:* Two numbers separated by a comma, as if the function is taking three arguments. Example: <code>findNavaidsWithinRange(lat, lon, range, type);</code>.
|param2 = range
|param2 = range
|param2text = Mandatory number giving the range in nautical miles within which to search for navaids. Defaults to "all." For the full list of accepted type arguments, see {{flightgear file|src/Navaids/positioned.cxx|l=127}}.
|param2text = Mandatory number giving the range in nautical miles within which to search for navaids.
|param3 = type
|param3 = type
|param3text = This will narrow the search to navaids of a certain type.
|param3text = This will narrow the search to navaids of a certain type. Defaults to "all." For the full list of accepted type arguments, see {{flightgear file|src/Navaids/positioned.cxx|l=127}}.
|example1text = Searches for navaids within 10 nm of [[KSFO]].
|example1text = Searches for navaids within 10 nm of [[KSFO]].
|example1 = var pos = airportinfo("KSFO");
|example1 = var pos = airportinfo("KSFO");
97

edits