(if(or blockName "Pipe")(print"Is true and print")(print"Is false and print"))(if(or blockName "Pipe")(progn(print"Is true and print first")(print"Is true and print second")(print"Is true and print third"))(progn(print"Is false and print first")(print"Is false and print second")(print"Is false and print third")))(cond((= flag "l")(print"Is l and print"))((= flag "r")(print"Is r and print"))(t(print"default")))
repeat 与 while
(setq n 10)(setq i 0)(repeat n
(expression_1)(expression_2)(expression_3)(expression_4)(setq i (+ i 1)))(setq flag 10)(while(> flag 0)(expression_1)(expression_2)(expression_3)(expression_4)(setq flag (- flag 1))))
(setq a (ssget))(setq n (sslength a))(setq b (ssname a 0))(setq c (entget b))(setq d (vlax-ename->vla-object b))(setq e (vlax-safearray->list(vlax-variant-value(vla-getattributes d))))(setq f (nth0 e))(setq rotation (vla-get-rotation f))(vla-put-rotation f)