Paste the nested code as-is — the AI needs to see the full nesting to untangle it. Ask for the truth table when conditions interact; that is where bugs hide.