AND Logic Possible?

I know nested conditions aren’t possible, but are there any logical functions available (e.g. AND or OR)? I have a rotation angle that needs to behave differently in the morning and afternoon (it depends on sunrise time in the morning and sunset time at night). I can’t get around it using layers and transparency, because I already have a transparency expression.

I’m kind of stuck for ideas at the moment as either the transparency or the rotation needs either a nested condition or a logical condition. Any ideas?

Apologies, I found the Boolean operators…