'Documenting if statements in doxygen

How do i document a if statment in doxygen, it documents all my classes, fucntions but the comment i write for if statments, it considers for the next nearest variable.

if abc != "":  # Here we check if abc is not equal to null and then check if it is equal to some known values
    if abc != "red":
        if abc != "blue":
            error()

if gfh != ""
    ghf = 0

it is assigning the comment to the "ghf = 0" , any idea how to assign the comment to if statement.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source