NOBREAK Examples


Example:

 

ABC

INIT

"ABC"

.

 

 

...

 

 

.

 

 

  

SWITCH

ABC

.

 

 

 

CASE

"ABC"

 

DISPLAY

"Testing ABC"

 

NOBREAK

 

.

 

 

 

CASE

"DEF"

 

DISPLAY

"Testing DEF"

.

 

 

 

DEFAULT

 

 

DISPLAY

"Testing default"

.

 

 

 

ENDSWITCH

 

 

In this example both the "ABC" and "DEF" strings will be displayed. Without the NOBREAK instruction, only the "ABC" string would be displayed.

 



PL/B Language Reference