|
do when, do unless Full Description |
|
Syntax do (when|unless) condition?
local declaration*
action*
(else condition
local-declaration*
action*)*
(else
local-declaration*
action*)?
done
Purpose You can use do when count > 5
output "more than 5"
done
You can use do when count > 5
output "more than 5"
else
output "less than 6"
done
You can use one or more do when count > 5
output "more than 5"
else when count = 5
output "exactly 5"
else
output "less than 5"
done
In all these circumstances you can use |