I don't think a recursive routine is the best choice for this, a normal iterative loop would probably be a much better choice, but if you absolutely must do it recursively, then something like this is how you'd go about it.
The following example assumes the idea is to keep recursing until something is NOT RUNNING ( when v = p )
Code:
function Recursion {
# a command that changes one or both of $v or $p is required here
# otherwise it won't work.
if [ $v != $p ] ; then
echo RUNNING
sleep 3
Recursion
else
echo NOT RUNNING
fi
return 0
}