mirror of https://github.com/CrimsonTome/tldr.git
Use variables instead of literal values: (#7531)
- there is no need to compare two string literalsfeature/windows-fix-syntax-2
parent
9ad2a08a73
commit
c10199cd1a
|
@ -21,11 +21,11 @@
|
||||||
|
|
||||||
- Check whether two strings are equal:
|
- Check whether two strings are equal:
|
||||||
|
|
||||||
`if {{string}} == {{string}} ({{echo Condition is true}})`
|
`if %{{variable}}% == {{string}} ({{echo Condition is true}})`
|
||||||
|
|
||||||
- Check whether two strings are equal without respecting letter case:
|
- Check whether two strings are equal without respecting letter case:
|
||||||
|
|
||||||
`if /i {{string}} == {{string}} ({{echo Condition is true}})`
|
`if /i %{{variable}}% == {{string}} ({{echo Condition is true}})`
|
||||||
|
|
||||||
- Check whether a file exist:
|
- Check whether a file exist:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue