???? coding in #python, a question has ocurred to me:
while True:
...while True:
......try:
.........if args.arg1:
............if not condition1: break
.........if args.arg2:
............if not condition2: break
.........doThings()
.........sleep(100)
......except Exception as e:
.........print(e)
.........pass
...sleep(100)
how can i avoid these two inelegant 'while True' while checking conditions before doThings()?
(don't want to use endless if-elif-..-else, please)