Skip to content

Commit 6cba686

Browse files
committed
Added a switch case example
1 parent 34a903b commit 6cba686

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ If the argument doesn't have a value or hasn't been passed nothing is returned.
3131
ALPHA="$(argValue "g")" # 'hello'
3232
BRAVO="$(argValue "G")" # 'world'
3333

34+
# -S d
35+
case $(argValue 'S') in
36+
a) echo "something" ;;
37+
b) echo "something" ;;
38+
c) echo "something" ;;
39+
d) echo "darkside" ;;
40+
esac
41+
3442
```
3543

3644
### Check If An Argument Has Been Passed

0 commit comments

Comments
 (0)