From c10199cd1ae1d66f35a7db947c3cfaa7914318c1 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Sat, 29 Jan 2022 17:58:41 -0800 Subject: [PATCH] Use variables instead of literal values: (#7531) - there is no need to compare two string literals --- pages/windows/if.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/windows/if.md b/pages/windows/if.md index dd3f5a441f..a1a22169d8 100644 --- a/pages/windows/if.md +++ b/pages/windows/if.md @@ -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: