(s="a" and x=2) or true
I would think if would work better if it was transformed into implication.
if (p) q
(p => q)
if p q else r
(p=>q) and (~p => r)