else





else \ Language (API) \ Processing 1.0
























Search processing.org:





Language (A-Z) \ Libraries \ Tools \ Environment \ Compare \ Troubleshooting






Reference for Processing version 1.0+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name else Examples for(int i = 5; i < 95; i += 5) { if(i < 35) { line( 30, i, 80, i ); } else { line( 20, i, 90, i ); } }for(int i = 5; i < 95; i += 5) { if(i < 35) { line( 30, i, 80, i ); } else if (i < 65) { line( 20, i, 90, i ); } else { line( 0, i, 100, i ); } } Description Extends the if() structure allowing the program to choose between two or more block of code. It specifies a block of code to execute when the expression in if() is false. Syntax if(expression) { statements } else { statements } if(expression) { statements } else if(expression) { statements } else { statements } Parameters expression any valid expression that evaluates to true or false statements one or more statements to be executed Usage Web & Application Related if

Updated on November 22, 2008 08:39:26pm PST












Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.


© Info \

Site hosted by Media Temple!









Wyszukiwarka

Podobne podstrony:
Else
song05 Metallica Nothing else matters text
Else
Metallica & Symphony Nothing Else Matters
control structures else
Henry Kuttner Or Else UC
Bee Gees If Only Had My Mind On Something Else
Bee Gees Like Nobody Else
else
metallica nothing else matters
W02 wej wyj if else switch
control structures else
19 JULY HQ MIXX and more else
Metallica Nothing Else Matters
20 JULY HQ MIXX and more else
Else
nothing else matters

więcej podobnych podstron