We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2006-06-06 11:39 AM
2006-06-06 12:30 PM
2006-06-06 02:55 PM
REPEAT ! Some useful code here count = count + 1 IF count > 10^6 THEN 100 UNTIL pigs = "fly" 100: !Get out of loop free cardThis example will count to one million before bailing out which may be excessive for your needs, but it should take well under 1000 seconds to execute (I recall testing the loops at around a millisecond once, but that was on a MUCH slower computer than anything we use now).
2006-06-06 03:47 PM
2006-06-06 03:58 PM
F. wrote:Point well taken. I usually comment out the questionable code before saving, but that's a good idea about the END statement. I'll have to remember it.
I most use FOR - NEXT loops, which do not loop endless so easy. Saving before trying is not every time the hint, because AC precompiles the code before saving and might run into the endlessness too. If I have not saved a long time ago and if I do not trust my code I set an END at the beginning of the master-script before saving and delete it afterwards for the test.
2006-06-06 03:59 PM
I'll have to remember that.Would be nice if I would every time too.
2006-06-06 04:04 PM
F. wrote:I know what you meanI'll have to remember that.Would be nice if I would every time too.😉
2006-06-07 06:56 PM