Easy C v4/v2 Ultrasonic Help

Hello vex forum,
I’ve written (not kidding) 10+ different ultrasonic codes and can’t even get it to get it to print to screen.:confused: I’ve programmed basic autonomous codes before but thought I would venture out to sensors. I’ve written the code to drive until it reaches a wall 6 inches away and stop. Any help would be appreciated and I’ll try to post a screen shot of it later. Fixed code or sample code that works is appreciated.
Thanks in advance.
P.S. I’m using Easy v4 but I can use the old cortex and easy c v2.

Have you checked that the sensor is working fine? Go to Tools>Online Window, and check that the sensor value changes as you move an object closer or farther from it.

It would also help if you post your code so we can take a look if there is a problem there.