programming help...

so i want to know how to do until this do this, example of what i want to do is:

go forward until trigger1 is pressed

but in Easy C v4 code, can anyone tell me how to do that? thanks