This question already has an answer here:
I want to know how to put 2 commands in the same command block, but I don't know how. I think I need to use /execute, but that might not work. If you have ideas, please tell me. That would be greatly appreciated for me and other people.