Click see inside to see the working while block. I created it by modifying a repeat until block, because it has a similar structure.
@EMM_Coding for repeat until vector, which I modified to create the while block vector