If editor section question

var color = pickRandom([
  blue,
  ___
]);
if (color === blue) {
  drawBox(blue);
}
print(color);

Here the output is
Box
_______(a line)
and a color

var color = pickRandom([
      blue,
      ___
    ]);
print(color);
if (color === blue) {
      drawBox(blue);
    }

Here also the output is same .

My question is that why are the outputs same though the print function is written at different positions?
Is there any priority order in running the program or any internal flow control mechanisms?