Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qmake boolean operator precedence



  • Could you guess the result?

    Please, could someone give me the exact operator precedence table for qmake ( : = and, | = or )?

    @
    VAR_A =
    VAR_B = B
    VAR_C = C

    !isEmpty( VAR_A ) | !isEmpty( VAR_B ) : !isEmpty( VAR_C ) {
    message( 1 )
    }

    VAR_D = D

    !isEmpty( VAR_A ) : !isEmpty( VAR_B ) | !isEmpty( VAR_C ) : !isEmpty( VAR_D ) {
    message( 2 )
    }
    @


Log in to reply