~ubuntu-branches/ubuntu/wily/octave/wily

« back to all changes in this revision

Viewing changes to doc/interpreter/stmt.txi

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-05-14 12:42:41 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130514124241-dqow8bc0l4r3yj93
Tags: 3.6.4-2
* Adapt for Texinfo 5
  - add_info_dir_categories: use @dircategory in the patch
  - texinfo5.diff: new patch, fixes compatibility issues with Texinfo 5
* Upgrade to FLTK 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
@dfn{body} of a control statement.
47
47
 
48
48
@menu
49
 
* The @code{if} Statement::            
50
 
* The @code{switch} Statement::        
51
 
* The @code{while} Statement::         
52
 
* The @code{do-until} Statement::      
53
 
* The @code{for} Statement::           
54
 
* The @code{break} Statement::         
55
 
* The @code{continue} Statement::      
56
 
* The @code{unwind_protect} Statement::  
57
 
* The @code{try} Statement::           
 
49
* The if Statement::            
 
50
* The switch Statement::        
 
51
* The while Statement::         
 
52
* The do-until Statement::      
 
53
* The for Statement::           
 
54
* The break Statement::         
 
55
* The continue Statement::      
 
56
* The unwind_protect Statement::  
 
57
* The try Statement::           
58
58
* Continuation Lines::          
59
59
@end menu
60
60
 
61
 
@node The @code{if} Statement
62
 
@section The @code{if} Statement
 
61
@node The if Statement
 
62
@section The if Statement
63
63
@cindex @code{if} statement
64
64
@cindex @code{else} statement
65
65
@cindex @code{elseif} statement
207
207
using the indentation to show how Octave groups the statements.
208
208
@xref{Functions and Scripts}.
209
209
 
210
 
@node The @code{switch} Statement
211
 
@section The @code{switch} Statement
 
210
@node The switch Statement
 
211
@section The switch Statement
212
212
@cindex @code{switch} statement
213
213
@cindex @code{case} statement
214
214
@cindex @code{otherwise} statement
385
385
 
386
386
@end itemize
387
387
 
388
 
@node The @code{while} Statement
389
 
@section The @code{while} Statement
 
388
@node The while Statement
 
389
@section The while Statement
390
390
@cindex @code{while} statement
391
391
@cindex @code{endwhile} statement
392
392
@cindex loop
454
454
body; but using one makes the program clearer unless the body is very
455
455
simple.
456
456
 
457
 
@node The @code{do-until} Statement
458
 
@section The @code{do-until} Statement
 
457
@node The do-until Statement
 
458
@section The do-until Statement
459
459
@cindex @code{do-until} statement
460
460
 
461
461
The @code{do-until} statement is similar to the @code{while} statement,
501
501
body; but using one makes the program clearer unless the body is very
502
502
simple.
503
503
 
504
 
@node The @code{for} Statement
505
 
@section The @code{for} Statement
 
504
@node The for Statement
 
505
@section The for Statement
506
506
@cindex @code{for} statement
507
507
@cindex @code{endfor} statement
508
508
 
658
658
structure elements when the names of the elements do not need to be
659
659
known.
660
660
 
661
 
@node The @code{break} Statement
662
 
@section The @code{break} Statement
 
661
@node The break Statement
 
662
@section The break Statement
663
663
@cindex @code{break} statement
664
664
 
665
665
The @code{break} statement jumps out of the innermost @code{for} or
713
713
@end group
714
714
@end example
715
715
 
716
 
@node The @code{continue} Statement
717
 
@section The @code{continue} Statement
 
716
@node The continue Statement
 
717
@section The continue Statement
718
718
@cindex @code{continue} statement
719
719
 
720
720
The @code{continue} statement, like @code{break}, is used only inside
762
762
@end group
763
763
@end example
764
764
 
765
 
@node The @code{unwind_protect} Statement
766
 
@section The @code{unwind_protect} Statement
 
765
@node The unwind_protect Statement
 
766
@section The unwind_protect Statement
767
767
@cindex @code{unwind_protect} statement
768
768
@cindex @code{unwind_protect_cleanup}
769
769
@cindex @code{end_unwind_protect}
813
813
point of the error and the statement to restore the value would not be
814
814
executed.
815
815
 
816
 
@node The @code{try} Statement
817
 
@section The @code{try} Statement
 
816
@node The try Statement
 
817
@section The try Statement
818
818
@cindex @code{try} statement
819
819
@cindex @code{catch}
820
820
@cindex @code{end_try_catch}