Compile while command