before dotcmd before while before return after dotcmd, return value: 0