TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: andrew_nao on August 18, 2014, 09:27:19 AM
-
Im looking to pause for input in a loop. is this possible
(if (> (length _list) 1)
(progn
(while _list
(alert "do my thing")
(setq lista (cons list lista))
(setq listb (cons list listb))
(setq _list (remitem _list 0)) ; function to remove item from list
(setq list (getstring)) ;wait for new input here
)
)
)
-
i guess its kinda stupid to pause a loop why loop if you need to pause right?
-
Sure its possible...
I'm not sure why our code does not pause...
did not tested it, because u should not assign a value to a variable named list, maybe one of the most important function in lisp...
try:
Greets reltro
-
thank you for your help its appreciated
it was a typo was supposed to be _list thanks for the heads up