SegaXtreme

How would i make this program in Saturn C? (with SGL)

If i push button C the program goes to line x and if i push Z it would go to line y. In basic it would look something like:

IF buttonpress = "X" THEN GOTO 10 ELSE GOTO 15

I don´t know much about Saturnprogramming yet, but i´ll try to learn! Please help me with this.
Top