3-Newcomer
May 7, 2025
Solved
Passing variables to nested While loops
- May 7, 2025
- 3 replies
- 667 views
I have a question about variable definitions in programming. I have a program with two nested while loops. The second (nested) while loop balances forces in a structure. The first while loop updates a variable DeltaT until some additional criteria is met. DeltaT needs to update in the second (nested) while loop for the program to work. However, the updated value of DeltaT from the first loop is not being passed to the second loop. Why is this, and what can I do to fix the problem?
Program is on page 8 of attached spreadsheet. Check and Check 3 demonstrate that the variable is not updating in the nested loop.

