Vexcode v5 Pneumatics Programing

Our team has been trying to figure out how to set up a pneumatic piston for about an hour now. We are not exactly sure how to program it in vex code. We have it in port G and as a digital out. How could we program it?

Have you tried this?

Edit: Not sure that you are using text, but I think the principles should apply