hi @mbecerra24,
- (cond ((= numspacesta11 2) (setq StaNumsp11 (STRCAT " "))) ((= numspacesta11 3) (setq staNumSP11 (STRCAT " "))) ((= numspacesta11 4) (setq staNumSP11 (STRCAT " "))) ((= numspacesta11 5) (setq staNumSP11 (STRCAT " "))) ((= numspacesta11 6) (setq staNumSP11 (STRCAT " "))) )
which means if in any condition numspacesta11= 2,3,4,5,6, it will be the same result:
(setq staNumSP11 (STRCAT " "))
IMO or ,vl-some better than cond in this case
p/s: sorry off topic
This reminds me in very old thread Roy advised & pointed out my code used too many repeating "if" , which he proposed using "and", then i improved my mistake. thanks @Roy |