Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Trying to get a boolean return
I wrote the following :
(defun fnTestBooleanEqualTo1 ( Value / Ret)
(if (= value 1)
(Setq Ret T)
(Setq Ret nil)
)
)
(defun c:xx ( / )
(if (fnTestBooleanEqualTo1 0)
(princ "\n0 0 =1 ")
(princ "\n0 0<>1")
)
(if (fnTestBooleanEqualTo1 1)
(princ "\n0 1 =1 ")
(princ "\n0 1<>1")
)
(princ)
)
It's working but ...
I imagene there's a more elegant road for this
Maybe it's something simple.
Thanks,
Gery
Solved! Go to Solution.