Created
August 18, 2015 20:54
-
-
Save JoshVarty/022fe69b610b8d168312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char key = Console.ReadKey(); | |
if(key == 'A') | |
{ | |
LogConditionWasTrue(); | |
Console.WriteLine("You pressed A"); | |
} | |
else | |
{ | |
Console.WriteLine("You didn't press A"); | |
LogConditionWasFalse(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment