Format element based on boolean value

Hi, this is now bypassing the if statement and the box element is always showing as blue (even when approved = true)?