Message 1 of 3
setq null variable

Not applicable
11-30-2018
05:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, I am trying to write a command, during that command it asks for height to text, if i hit enter i want the variable to be .2 height but i cant make it, where is the error? thanks
(defun C:cht()
(setq pt1 (getpoint "\nSpecify first corner of text: "))
(setq pt2 (getpoint "\nSpecify second corner of text: "))
(setq height (getreal "\nspecify height of text:"))
(if (null height)
(setq height (= .2))
)
(command "-mtext" pt1 "j" "mc" "h" height pt2)
)