ladder logic

Source code formatted in two columns with conditions on the left that lead to outputs on the right:

  if (c1)     s1 else
  if (c2)     s2 else
  if (c3)     s3 ...