# STRUCTURAL CONTROL continuation STATEMENT  SWITCH  WHILE  DO..WHILE.

## Presentasi berjudul: "STRUCTURAL CONTROL continuation STATEMENT  SWITCH  WHILE  DO..WHILE."— Transcript presentasi:

STRUCTURAL CONTROL continuation STATEMENT  SWITCH  WHILE  DO..WHILE

 Used to test an expression to perform a number of different actions.  Usually used in place of a statement if... elseif... else.

Sintaks : Switch (ekspresi) { case (kondisi1): blok pernyataan1; break; case (kondisi2): blok pernyataan2; break;.... case (kondisi N): blok pernyataan N; break; deafault: blok pernyataan lainnya; break; }

Sintaks 2 : Switch (ekspresi) : case (kondisi1) : blok pernyataan1; break; case (kondisi2) : blok pernyataan2; break;.... case (kondisiN) : blok pernyataanN; break; default: blok pernyataan lainnya; break; endswitch;

statement switch

Statement used to evaluate looping statement block for condition is true, and it will stop when the condition is false

Sintaks : While (kondisi) { blok pernyataan; } Atau While (kondisi) : blok pernyataan; endwhile

 The condition is a boolean expression  Block statement is a list of statements to be repeated as long as conditions are met.  If the start condition is false, the statement block will never be done.

statement swile

 In principle, the statement is similar to while working  In the do.. while, block statements certainly done one time and then do the test conditions.  If the condition is still true, the statement block reworked.  If the condition is false, the loop stops.

Sintaks : Do { blok pernyataan; } While (kondisi);

 Condition is boolean  Block statements are statements that are repeated throughout the list true condition,  If the condition is false, then we are out of the statement and the statement after the while working.

statement dowhile

The meeting is finished, you can download these materials at www.stmik-tasikmalaya.ac.id, download the menu, the course material ( filename = PHPMySQL4,Kamboja.) thank you see you at the next meeting

Presentasi serupa