Helpe me with programing my function

wizarcl:
Sorry, i'm a noob...
How i can do this?

Thanks for your help.

By doing what I told you in my last answer.