How to remain inside a function?

Oooops silly error ... Told you I was new at this, thanks for the correction.