apart from the complex post by peter, when you get to complex bots especially, order of genes is possibly more key than order of actions....
I made a bot which the first genes for reproduction had a high criteria, then would reproduce by .repro (mitosis) then the next gene would do .sexrepro (2 parents reproduction...If it was selected as girl, if boy it shot sperm instead)
the second gene had a much lower NRG criteria, but if it hit the high criteria, I didn't want it to only do mitosis because thats a worse system, so I put the mitosis first, then it would only do mitosis is it WASN'T fertlised and had that high NRG....
GENE 1: LOWEST PRIORITY
GENE 2: MIDDLE PRIORITY
GENE 3 (FINAL GENE): HIGHEST PRIORITY