getnl function

Getter function to get a variable of a nl object