!do loops
message={ value="Loops in xtpanel scripts" }
text={ value="Here is a trick that allows you to construct
loops in an xtpanel script. Press the GO button. This runs
through a loop ten times, creating a button each time.
See the script for this page to see how it is done."
    }
var={ name=calc value="| bc -l" }
! nbutton is the number of iterations
var={ name=nbutton value=10 }
button={ name=gobutton label=GO action="ASSIGN ibutton 1" } 
! the variable actions create a button, then increment the loop counter 
var={ name=ibutton
  test={ condition="test $ibutton -le $nbutton"
	 true={ action="CREATE gobutton button={ label=button$ibutton }"
 		action="ASSIGN ibutton `echo $ibutton + 1 $calc`"
	      }
       }
}
