Книги автора: Linux Network Administrator Guide, Second Edition
/ Книги автора: Linux Network Administrator Guide, Second Edition
Книга: Linux Network Administrator Guide, Second Edition
The if and goto commands
The if and goto commands
The if command is a conditional branch, rather than a full-featured programming if statement. Its syntax is:
if var op number goto label
The expression must be a simple comparison between one of the variables $errlvl, $locip, and $rmtip. var must be an integer number; the operator op may be one of -,!=, ‹, ›, ‹=, and ›=.
The goto command makes the execution of the script continue at the line following that bearing the label. A label must be the first word on the line and must be followed immediately by a colon.
Похожие страницы
- The echo command
- The modem commands
- The print command
- 5.5.1.1 Moving in the calendar
- Разработка приложений баз данных InterBase на Borland Delphi
- 4.4.4 The Dispatcher
- Open Source Insight and Discussion
- Introduction to Microprocessors and Microcontrollers
- About the author
- Chapter 6. Traversing of tables and chains
- Chapter 7. The state machine
- Chapter 8. Saving and restoring large rule-sets