LCD cursor variable HELP

Hello I am writing code for a ping pong game, I want to have a variable for the cursor coordinates like, x = 0

and then the loop:

val = digitalRead(0); ;if (val == LOW) x = x+1 else { break; } lcd.setcursor(0, x) see right up here, there is a variable for the collum position of the cursor, can I put a variable there? Thanks clayton

can I put a variable there?

You can put a variable wherever you like. Semicolons, on the other hand, go at the END of the line!