help with a control flow tool
I have been trying very hard to get the following lines of code to be looped over with a
control flow statement. It seemed like the while loop would be the choice but perhaps there
there is another tool that is used and I am very sorry that I do not understand these control
flow tools better.
I want the program to simply stop if all of the conditions in the following lines are met
but to continue on to the next line if any of these conditions are false:
vtival < float(bucket +.35bucket) or vtival > float(bucket -.15bucket)
tltval < float(bucket +.35bucket) or tltval > float(bucket -.15bucket)
iauval < float(bucket +.35bucket) or iauval > float(bucket -.15bucket)
shyval < float(bucket +.35bucket) or shyval > float(bucket -.15bucket)
I am thanking anyone who helps me with this in advance to either tell me what to do
or what I should read to understand this more fully.
The problem with the various suggestions has been that the programs have proceeded to the next line if the condition was not met but the next line said to stop. I still have not mastered these control flow tools well. It seems like what I need is SOMETHING like: if (condition is met) break, else, continue. The general idea of this program is to rebalance a portfolio if any of its holdings vary from set percentages by certain amounts so it stops if those conditions are met and proceeds on to the rest of the program (the next line in it) if it needs rebalancing. Thank you for all of the help you have given me in the past. @SixBeeps