if conditions on structures