Howto:Using Driver Hashes in Nasal: Difference between revisions

Line 18: Line 18:


However, Nasal scripts may need to work with all of these components, regardless of the concrete implementation - this is where we commonly see spaghetti code using lots of nested if/elseif constructs to deal with the differences among these implementations.
However, Nasal scripts may need to work with all of these components, regardless of the concrete implementation - this is where we commonly see spaghetti code using lots of nested if/elseif constructs to deal with the differences among these implementations.
== Example ==
Let's imagine, we have a piece of Nasal code that needs to work with different FDMs (or autopilot/route manager configurations).
The YASim property may be named <code></code>
<syntaxhighlight lang="nasal">
</syntaxhighlight>


== Background ==
== Background ==