Cosmos/source/IL2CPU.Tests/Tests/SimpleIfStatement/SimpleIfStatement.cs
2007-09-16 07:59:58 +00:00

19 lines
No EOL
264 B
C#

using System;
class Program
{
static void Main()
{
bool theParam = true;
int theValue = ConditionalFunction(theParam);
}
public static int ConditionalFunction(bool aValue)
{
if(aValue) {
return 4;
} else {
return 2;
}
}
}