View previous topic :: View next topic
|
Author |
Message |
parul rana
New User
Joined: 01 Aug 2006 Posts: 4 Location: india
|
|
|
|
Q. pls explain next sentence and continue statement in detail???with
example.
Q. give also the diff between the two. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Parul Rana...
Code: |
If A = B
CONTINUE/NEXT SENTENCE
IF C = D
DISPLAY 'C IS EQUAL TO D'
ELSE
DISPLAY 'C IS NOT EQUAL TO D'.
DISPLAY 'HELLO'. |
CONTINUE will go and check for comparison between C & D.
NEXT SENTENCE will not compare C & D... directly go n display "HELLO".
In short CONTINUE skips the processing to the next Scope Terminator.
NEXT SENTENCE skips the processing to the next Statement after the next PERIOD(.)
If you need detailed information on these two search the manuals... |
|
Back to top |
|
|
|