eq (Concept)

AutoCAD

 
eq
Concept Quick Reference
 
 
 

If the strings val1 and val2 are identical, the string returns 1; otherwise, it returns 0.

      $(eq, 
      val1
      , 
      val2
      )
    

The following expression gets the name of the current layer; if the name matches the string value stored in the USERS1 (USERS1-5) system variable, it returns 1. Assume the string "PART12" is stored in USERS1 and the current layer is the same.

$(eq, $(getvar,users1),$(getvar,clayer))Returns 1