x = 0 assignment???

I’ve been learning to use easy c, going through programming files and testing them with sensors. I’m getting the hang of it pretty well but have come across a program with the following and don’t understand why it is there and what it does.

The robot is meant to do this using bumper and limit switches http://vimeo.com/72269864

I have attached a print of the flowchart.

What do the x=0 assignment things mean and do?

Thanks in advance
bumper & limit switch program.pdf (35.7 KB)

x = 0

Sets the variable x to Zero

Check out this video.

ok great thanks!