Well, not exactly. With C# the braces are not required. Here is an exemple: class My { public static void Main() { if (5 == 5) System.Console.Write("ok"); } } Octavian----- Original Message ----- From: "Chris Hallsworth" <christopherhallsworth71@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, November 05, 2008 9:20 PM Subject: Re: perl - a small reminder
What language is this? With C#, braces are required because it's part of blocks of code, or statements.-- Chris Hallsworth e-mail: christopherhallsworth71@xxxxxxxxxxxxxx MSN: ch9675@xxxxxxxxxxx skype: chrishallsworth7266 klango: chrishallsworth----- Original Message ----- From: "Lamar Upshaw" <lupshaw@xxxxxxxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, November 05, 2008 6:40 PM Subject: perl - a small reminderI need a little reminder and clarity about "If Else" statements.I only need to use the braces when there's more than one statement made based on the condition of the "if" statement, right?if ($a > 0) { $b =1; $c =2; } But, if only one statement is made, I don't need the braces? if ($a >0) $b = 1; With All Respect, Upshaw, Lamar T __________View the list's information and change your settings at //www.freelists.org/list/programmingblind__________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind