if (Concept)

AutoCAD

 
if
Concept Quick Reference
 
 
 

Conditionally evaluates expressions.

      $(if, 
      expr
      , 
      dotrue
       [, 
      dofalse
      ]) 
    

If expr is nonzero, it evaluates and returns dotrue. Otherwise, it evaluates and returns dofalse. Note that the branch not chosen by expr is not evaluated.