Case ( field A = x ; 1
field a = y ; 2 )
then your conditional should work
should you want "If()":
If ( field A = x ; 1 ;
If ( field A = y ; 2 ) )
this is nested Ifs, but the Case is cleaner to error check.
It might be that you have too much nested stuff in there.
Why don't you just cond format the field A based upon itself ?
conditional format for A -> 2 conditions
A = FirstCondition; Fill = blue
A = SecondCondition, Fill = yellow
post your file and we'll fix it.