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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.