Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# simplified if statement

// condition ? consequent : alternative

bool apples;
int appleAmount = 1;

appleAmount > 1 ? apples = true : apples = false;
 
PREVIOUS NEXT
Tagged: #simplified #statement
ADD COMMENT
Topic
Name
7+9 =