mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 22:38:31 +00:00
commit
c0b1d2cae0
@ -73,9 +73,9 @@ echo Hello, $NAME!
|
|||||||
# use 'man test' for more info about conditionals
|
# use 'man test' for more info about conditionals
|
||||||
if [ $NAME -ne $USER ]
|
if [ $NAME -ne $USER ]
|
||||||
then
|
then
|
||||||
echo "Your name is your username"
|
|
||||||
else
|
|
||||||
echo "Your name isn't your username"
|
echo "Your name isn't your username"
|
||||||
|
else
|
||||||
|
echo "Your name is your username"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# There is also conditional execution
|
# There is also conditional execution
|
||||||
|
Loading…
Reference in New Issue
Block a user