# Unnecessary Function Parenthesis

##### Tags:

- C/AL
- Readability

##### Categories:

- Best Practice

Do not use parenthesis in a function call if the function does not have any parameters.

Bad code

    IF ReservMgt.IsPositive() THEN

Good code

    IF ReservMgt.IsPositive THEN

Bad code

    IF ChangeStatusForm.RUNMODAL() <> ACTION::Yes THEN

Good code

    IF ChangeStatusForm.RUNMODAL <> ACTION::Yes THEN

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001