All pastes #544203 Raw Edit

Something

public text v1 · immutable
·published 2007-06-06 10:46 UTC
rendered paste body
menu * {
  .control
  ..halfop: /firstwhileloop
  ..dehalfop: /firstwhileloop2
}
alias firstwhileloop {
  var %i = 1
  while (%i <= $snick(#,0)) {
    /mode $active +h $snick($active,%i)
    inc %i
  }
} 
alias firstwhileloop2 {
  var %i = 1
  while (%i <= $snick(#,0)) {
    /mode $active -h $snick($active,%i)
    inc %i
  }
}