In a user-triggered workflow, if you need both A = 1 and B = 1, you must handle them together in a single branch. You can’t treat them as two separate, independent branches.
In a manual workflow, you can layer your logic instead. First, create a condition that checks if A = 1. Inside that branch, add another condition that checks if B = 1 and add actions there.
The key idea is that condition branches are compared against each other as whole branches, not run one by one independently.