The inner loop does not have a step for exiting the loop and so it loops forever.
Change the inner loop to be:
Loop Go to Layout ["Enter_Entries" (Entries)] Exit Loop If [$Credits < 0] New Record/Request Set Field [Entries::id_member; $MemberID] Set Variable [$Credits; Value:$Credits - 1] End Loop
Thanks Phil, that worked!
I was under the presumption that when the 'If' statement became 'False', it would proceed to the 'End If' and then the 'End Loop' and out of the sub-loop. From what you showed me, it seems that no matter what happens in the 'If', the 'End If' will NOT proceed to the 'End Loop', correct?
It does indeed pass control to the ENd IF step, but since that step is inside the loop, the script loops around again and control passes to the first step inside the loop.
Thanks Phil. I think I got it now. The If gets to the End If statement but the End If does not effect the loop, so the loop continues back to the top where the If starts again, still reads false, still goes to the End If but never leaves the inner loop. That makes sense, I just didn't see that before. Which is why there needs to be something that acts upon the Loop statement, which is the 'Exit Loop If' that you showed me.
Thanks. This makes sense now. I appreciate it.