Changes from Version 1 of IfElseExample/D1
- Timestamp:
- 09/03/10 22:59:29 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IfElseExample/D1
v0 v1 1 = If/Else = 2 3 ''Part of'' TutorialFundamentals 4 5 == Description == 6 7 Simple (yet effective) flow control. 8 9 == Example == 10 11 {{{ 12 #!d 13 import std.stdio; 14 15 void main() { 16 int i; 17 if (i == 0) 18 writef("It's one!"); 19 else 20 writef("It's not one!"); 21 } 22 }}}