While and Read for user input
eharetea

Get correct user input using a while loop and the read hscript command.

Hscript basics.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 01:49 PM

/*
WHILE LOOP WITH READ:


The read command allows for user input, just like in bash.
*/


while ($strlength==0)

 echo
 echo please enter in a value
 read curvename
 set strlength = `strlen("$curvename")`

end