Parse the Navigation command query and retrieve the nth command
from it into cmd.
If the list contains less elements than nth, cmd will be set to
INVALID.
| query |
a Query |
| nth |
the nth command to retrieve. |
| cmd |
a pointer to store the nth command into. |
|
true if the query could be successfully parsed. false if not. |