Thursday, 5 May 2011

If/Else

I have decided to use the If/Else function for my Exhibition. In processing the description for this fucntion is

Else:
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.

If:
Allows the program to make a decision about which code to execute. If the test evaluates to true, the statements enclosed within the block are executed and if the test evaluates to false the statements are not executed

My definition of it is that if some action were to happen then it would change something on the screen or a sound will play etc, but until that action were to happen then the screen would stay the same as it was when the program was started or the sound wouldnt play etc.

No comments:

Post a Comment