Using Multiple ANDs and ORs in IF Statements

I am trying to set up something like 1 AND (2 AND 3) OR (4 AND 5). 1 would be someone’s presence. 2 and 3 are weekdays at a specified time. 4 and 5 are weekends at a specified time. Right now I have two Rules for this, but I thought I’d try to create just one Rule. I can this by doing if 1 is true, then go to two other IF statements that would contain 2/3 and 4/5, but I would like to suggest the ability to do it in one top level IF statement. So, instead of options in the IF statement being all OR or all AND, we would be able to have a combination of ANDs and ORs. Thanks.