If else 
| ID | STAT-5 | 
| Title | Every ifshall have anelsesection. | 
| Priority | Strongly recommended | 
| Severity level | 10 | 
| Description | Every ifshall have anelsesection, even if it does not contain executable code. | 
| Rationale | By including an elsesection, no execution paths are overlooked. Additionally, code coverage can be accurately reported because withoutelse, it is unclear whether theif-condition is everfalse. | 
Avoid:
if x > 0
    saveData()
end
Instead use:
if x > 0
    saveData()
else
    % Do not save data.
end