if (%stage = 1) { WARN }
elseif (%stage = 2) { KICK }
elseif (%stage > 2) {
KICKBAN
hdel CAPSTABLE <nick or mask>
}
Using if, elseif and else will do just fine:
if (%stage > 2) { KICKBAN | hdel timeout nick/host }
elseif (%stage = 1) { WARN }
else { KICK }