parser: command blocks
parser: add if command; improve cmd block