- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've had some success but this is not working.
I have a few edit boxes and with the default set to "" like below.
: edit_box {key = "fnct1"; label = "Function 1 "; edit_width = 10; value = "";}
I want to ingore the boxes that have no value and if they do have value run the program.
I've tried IF and COND but not having success it seams to pass over the check. and run the program
(setq fnt1(get_tile "fnct1"))
(if (/= fnct1 "")
(progn
(command "_.Rename" "_Layer" "FUNCTION01" fnt1)
(command "_.Layer" "_Color" "BLUE" fnt1 "")
);end progn
);end if
I tried
(cond
((= fnct1 t)
(command "_.Rename" "_Layer" "FUNCTION01" fnt1)
(command "_.Layer" "_Color" "BLUE" fnt1 "")
);end 1st cond
((= fnct1 f) nil)
(princ)
);end Cond
Solved! Go to Solution.