Added 2 String Comparison Conditionals (#769)

they check to see if the strings are equal or not... 
Just thought its an essential comparison that should be in the cheatsheet.
This commit is contained in:
haider 2018-11-08 02:59:09 +05:00 committed by chad d
parent f683f59ce2
commit 0804754a91
1 changed files with 2 additions and 0 deletions

View File

@ -321,6 +321,8 @@ Conditionals
| Condition | Description |
| --- | --- |
| `[ STRING = STRING ]` | Equal |
| `[ STRING != STRING ]` | Not Equal |
| `[ -z STRING ]` | Empty string |
| `[ -n STRING ]` | Not empty string |
| --- | --- |