Conditional structures: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) (→{{header|VBScript}}: full syntax) |
m (→Ternary) |
||
Line 1,008: | Line 1,008: | ||
===Ternary=== |
===Ternary=== |
||
<lang csharp>// if condition is true var will be set to 1, else |
<lang csharp>// if condition is true var will be set to 1, else 2. |
||
int var = condition ? 1 : 2;</lang> |
int var = condition ? 1 : 2;</lang> |
||