Difference between revisions of "Elif"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
* https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Conditional-Constructs | * https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Conditional-Constructs | ||
+ | [[if]]..elif..else | ||
+ | [[if]] test-commands; then | ||
+ | consequent-commands; | ||
+ | elif more-test-commands; then | ||
+ | more-consequents; | ||
+ | else alternate-consequents; | ||
+ | fi | ||
+ | == See also == | ||
* {{if}} | * {{if}} | ||
* {{Bash}} | * {{Bash}} | ||
+ | |||
+ | [[Category:Bash]] |
Latest revision as of 13:38, 14 November 2022
if..elif..else
if test-commands; then consequent-commands; elif more-test-commands; then more-consequents; else alternate-consequents; fi
See also[edit]
if
,man test
,-z, elif
, BraketBash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: