Preserve condition expression in if statement
Preserve empty primary conditions in if statements
Model Configuration Pane: Code Generation / Code Style
Description
Specify whether to preserve empty primary condition expressions in if statements.
Settings
off (default) | onDefault: off
- On
- Preserves empty primary condition expressions in - ifstatements, such as the following, to increase the readability of the code or for code traceability purposes.
- Off
- Optimizes empty primary condition expressions in - ifstatements by negating them.
Examples
Recommended Settings
| Application | Setting | 
|---|---|
| Debugging | On | 
| Traceability | On | 
| Efficiency | Off (execution, ROM), No impact (RAM) | 
| Safety precaution | No recommendation | 
Programmatic Use
| Parameter: PreserveIfCondition | 
| Type: character vector | 
| Value: 'on'|'off' | 
| Default: 'off' | 
Version History
Introduced in R2007a