Answers for "simple if statement c#"

C#
1

if c#

bool condition = true;
if(condition)
  var t = "The condition its true";
else
  var f = "The condition its false";

// We dont need to use the '{' because it's just 1 change
Posted by: Guest on December-16-2021
0

if c#

if (condition) 
{
  // block of code to be executed if the condition is True
}
Posted by: Guest on December-16-2020

C# Answers by Framework

Browse Popular Code Answers by Language