Compares a layerstate to the layers in the
            current drawing
         
         (layerstate-compare layerstatename viewport)
 
         Arguments
         
- layerstatename
 
            - 
               
                  A string specifying the
                     name of the layer state compare.
                  
                
             - viewport
 
            - 
               
                  An ename (ads_name) of
                     the viewport to be used in the compare. If viewport is nil, the
                     current viewport is used
                  
                
             
         
         Return Values
         
         T if
            successful; otherwise nil
         Examples
         
         (layerstate-compare "myLayerState")