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

Jump to navigation Jump to search
no edit summary
No edit summary
Line 3: Line 3:
Objective: Learn more about vectors and hashes to see how you can simplify and generalize your code easily.
Objective: Learn more about vectors and hashes to see how you can simplify and generalize your code easily.


== Learn more about vectors ==
Imagine a piece of Nasal code working with 5 different waypoints. You would need to manage the data for each waypoint. A simple version using different variables for each data set might look like this:
Imagine a piece of Nasal code working with 5 different waypoints. You would need to manage the data for each waypoint. A simple version using different variables for each data set might look like this:


Navigation menu