*** This script selects or deselects walls that belong to inner or outer loops.

// Parameter list begins
mov r98 0 // 0 - deselect, 1 - select
mov r99 0 // 0 - outer loops, -1 - inner loops
// Parameter list ends
~~~ Default parameters:
~~~ mov r98 0 // 0 - deselect, 1 - select
~~~ mov r99 0 // 0 - outer loops, -1 - inner loops
mov r00 -1
for each selected wall r00
  getlooporientation r00 r01
  if r01 == r99  selectwall r00 r98  endif
continue