R Function Loop When A Numeric Variable Falls Below A Value Ex 40

R Function Loop When A Numeric Variable Falls Below A Value Ex 40