Execute A once, then B.

Or a branch with a boolean variable.
If A = true, do A. Set A = false.
If A = false, do B.