Whenever Moses held up his hand, Israel prevailed, and whenever he lowered his hand, Amalek prevailed.