1 posted on
03/01/2019 10:15:34 AM PST by
ShadowAce
To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; Ernest_at_the_Beach; martin_fierro; ...
2 posted on
03/01/2019 10:15:55 AM PST by
ShadowAce
(Linux - The Ultimate Windows Service Pack)
To: ShadowAce
Lol - read that as Bush case statement and was wondering what W had said now :)
3 posted on
03/01/2019 10:18:27 AM PST by
Skywise
To: ShadowAce
The case statement is extremely powerful, and can greatly simplify iterating over multiple options, as opposed to using long 'if ... then ... else' loops. Personally, I think it can make a script more legible than nested loops, which can easily get out of hand. Also, the final "*)" construct makes it easy to validate input. If your input doesn't fit the rather sharply defined criteria, you have an easy place to handle it.
ShadowAce, I'd recommend a post on 'while' loops next, as they are related IMO, one on functions would be cool too.
4 posted on
03/01/2019 11:52:04 AM PST by
zeugma
(Power without accountability is fertilizer for tyranny.)
To: ShadowAce
5 posted on
03/02/2019 9:27:12 AM PST by
DUMBGRUNT
("The enemy has overrun us. We are blowing up everything. Vive la France!")
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson