Bundt Scripting Reference
                            ·
                            Bundt Scripting Language version 1.0.1.0
                        
                        
                        
                        
    
    
    
    
        compare
        statement
    
    
    Compares two models and lists the differences.
    
    Syntax
    
        
    compare (lexical | semantic) [Model1] to Model2
    
    
        
            
                | Element | Type | Optionality | Notes | 
        
        
            
    
        | lexical |  | Optional. Either this or semantic must be indicated. | Indicates that a lexical comparison should be performed. | 
    
        | semantic |  | Optional. Either this or lexical must be indicated. | Indicates that a semantic comparison should be performed. | 
    
        | Model1 | Model name | Optional. If no model name is specified, the model in context is used. If no model is in context, an error occurs. | Specifies the first model to compare. | 
    
        | Model2 | Model name | Mandatory. | Specifies the second model to compare. | 
        
    
    
    Returns
    
    A boolean value; true if the two models are (lexically or semantically) identical, or false otherwise.
    
    Examples
    
        
            
                | Intent | Code | 
        
        
            
    
        | Lexically compare the model in context to another one | compare lexical to MyModel; | 
    
        | Semantically compare two explicit models | compare semantic MyFirstModel to MySecondModel; | 
        
    
    
    See Also
    
                        
                        
                        
                            Contents distributed under a Creative Commons Attribution 4.0 International License 
                            ·
                            About
                            ·
                            Terms of Use
                            ·
                            Contact Us
                            ·
                            last updated on 08 October 2020