Don’t Panic! When you are panicking you are not able to make sensible decisions, and you can use up all your much needed energy.
Start swimming or paddling across the rip, parallel to the beach. This should take you to the wave breaking zone, where you can swim or paddle into shore.
If you are out of energy and do not have the strength to paddle or swim, float in the water, with the current, don’t fight it.
Conserve your energy and float on your back. Signal for help with your hand in the air. The rip will take you out the back and will eventually stop, so when you are out of the rip, float or swim across to the wave breaking zone, to come into shore.