same as:

%x = 1
/while (%x < 10) {
action
/inc %x
}

but a little bit longer to type :P