The bolded line is causing the issue. When we set the rotations to 1 the claw closed and the program just stopped running from there. When we set it to -1 the claw opened but still the program stopped running. Either way the lines of code following the bolded statement do not run. When I comment out the above line the program runs as planned.
My guess is that the motor is becomming stalled before it completes the rotation and so is never completing that command and so never moves on. If you change it to 0.5 for example, does it complete and move on?
I had the same issue and doing what calvc01 said worked for me. My issue was with the clawbot in virtual worlds. When we reduced the motor rotations (or degrees) the motor did not stall out and it continued the rest of the code
If your claw is similar to the standard VEX IQ Clawbot this happens to my students often. The clawbot claw will only rotate between 40 and 60 degrees. When my students tell the robot to rotate the claw over this amount the program stops because it is waiting to complete the command. For example, the gears moved 50 degrees but were programmed to move 360 degrees. Hope this helps.