Cosmos/source/IL2CPU.Tests/Tests/SimpleIfStatement/SimpleIfStatement.cs

20 lines
No EOL
296 B
C#

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