Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys, I've started a Lisp tutorial and wanted to work on a function to repeat with user input, as many times as the user wants, can someone please help?
Thanks in advance and here is the code
(defun c:RPA (/)
(setq n (repeat (getint "\n Enter times to purge and audit")))
(if (> 0 n)
(progn
(command "-Purge" "r" "*" "n" "-Purge" "a" "*" "n" "Audit" "y")
(princ "\nThis file has been Purged and Audited succesfully!!")
)
)
(princ)
)
Solved! Go to Solution.