From 38e83070102486b2bd0b266c871f99a2beed7c40 Mon Sep 17 00:00:00 2001 From: Nick <138953524+401-Nick@users.noreply.github.com> Date: Sat, 30 Aug 2025 00:47:01 -0500 Subject: [PATCH] Fix equality operator in getInput1 function example --- content/c-sharp/concepts/conditionals/conditionals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/c-sharp/concepts/conditionals/conditionals.md b/content/c-sharp/concepts/conditionals/conditionals.md index d0da743053a..cb8e2fa9a60 100644 --- a/content/c-sharp/concepts/conditionals/conditionals.md +++ b/content/c-sharp/concepts/conditionals/conditionals.md @@ -127,7 +127,7 @@ Is this condition true ? Run this if yes : Run this if no; In the example below, the condition that is checked is if `input1` is equal to 10. If that condition is true, it returns the first string. Otherwise, it returns the second string: ```cs -string getInput1(int input1) => input1 === 10 ? "I returned true" : "I returned false"; +string getInput1(int input1) => input1 == 10 ? "I returned true" : "I returned false"; Console.WriteLine(getInput1(10)); // Output: "I returned true" Console.WriteLine(getInput1(5)); // Output: "I returned false"