Follow-up on MR !2965
# Bug description
There are a few spots which should be improved in the code from MR !2965 - especially on the usage of `if()` vs. `IF()`
# Ways to reproduce
Box folder: ...\\Box_EXTERNAL_IVAS_BASOP_VERIFICATION\\issues\\issue-xxxx
<!--Commandline or script-->
```bash
```
<!--- Below are labels that will be added but are not shown in description. This is a template to help fill them.
Add further information to the first row and remove and add labels as necessary.-->
issue