Howto:Start using vectors and hashes in Nasal: Difference between revisions

Jump to navigation Jump to search
m
Line 126: Line 126:
print ( waypoints[0][6] ) # contains the data stored in wp4brg
print ( waypoints[0][6] ) # contains the data stored in wp4brg
</syntaxhighlight>
</syntaxhighlight>
What we have here is a list of waypoints, with the first (0th) element containing another vector.


Obviously, you could add a bunch of other waypoints to the "waypoints" vector, too:
Obviously, you could add a bunch of other waypoints to the "waypoints" vector, too:

Navigation menu