diff options
author | Sean Corrales <scorrales@gmail.com> | 2015-10-05 09:50:44 -0500 |
---|---|---|
committer | Sean Corrales <scorrales@gmail.com> | 2015-10-05 09:50:44 -0500 |
commit | fe5157d36f4b508479edaa214e097f65e7ba26e1 (patch) | |
tree | e6a3f377ba4ed7735bbcf3c2908082b811168e9e /csharp.html.markdown | |
parent | a743c831a07f5e846051b156152fe8e6ddcfb097 (diff) | |
parent | e57fb68756ec6f4242ad04c359f7796606b52a42 (diff) |
Merge pull request #1 from adambard/master
Merging changes from source branch
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r-- | csharp.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown index 479b7f01..222ba0d2 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -236,7 +236,8 @@ on a new line! ""Wow!"", the masses cried"; // Ternary operators // A simple if/else can be written as follows // <condition> ? <true> : <false> - string isTrue = (true) ? "True" : "False"; + int toCompare = 17; + string isTrue = toCompare == 17 ? "True" : "False"; // While loop int fooWhile = 0; |