does anyone here have examples of do…loop, For…Next ,
switch case , codes in pbasic?

Check out my document (click the link that says “How-To”, and it’s the difference document)

If you look in the whitepapers Programming section I uploaded the official PBASIC 2.5 documentation, provided by Parallax. They provide thorough examples of how to use the commands, and explains what they mean/do.