1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 08:15:24 +02:00

Use variables instead of literal values: (#7531)

- there is no need to compare two string literals
This commit is contained in:
Emily Grace Seville 2022-01-29 17:58:41 -08:00 committed by GitHub
parent 9ad2a08a73
commit c10199cd1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,11 +21,11 @@
- 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:
`if /i {{string}} == {{string}} ({{echo Condition is true}})`
`if /i %{{variable}}% == {{string}} ({{echo Condition is true}})`
- Check whether a file exist: