in reply to How should I read print .. if .. and ?
EXPR_1 if EXPR_2 and EXPR_3; [download]
EXPR_1 will be evaluated if both EXPR_2 and EXPR_3 evaluate to true values.