Message 1 of 9
Boolean flag in function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can a boolean argument be set in a function? I want the argument to take two values T or nil. Depending on the return value, one of the conditions is met. For example:
(defun Test ( A / )
(if A
(progn)
(progn)
)
)
(test T) ; should return the first progn
(test nil) ; should return the second progn