Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes from Version 1 of IfElseExample/D1

Show
Ignore:
Author:
Andrej08 (IP: 78.2.19.175)
Timestamp:
09/03/10 22:59:29 (14 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IfElseExample/D1

    v0 v1  
     1= If/Else = 
     2 
     3''Part of'' TutorialFundamentals 
     4 
     5== Description == 
     6 
     7Simple (yet effective) flow control. 
     8 
     9== Example == 
     10 
     11{{{ 
     12#!d 
     13import std.stdio; 
     14 
     15void main() { 
     16  int i; 
     17  if (i == 0) 
     18    writef("It's one!"); 
     19  else 
     20    writef("It's not one!"); 
     21} 
     22}}}