Avaya Writing Technician Interface Scripts Manuale Utente Pagina 66

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 120
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 65
Writing Technician Interface Scripts
2-36
return
You use the return command in a subroutine to return to the calling routine. When
the
return command executes, the script interpreter begins executing the
instructions on the line following the line containing the
gosub command.
The
return command has the following syntax:
return
The following example shows a script using the gosub and return commands:
:main:
let arg = 1; gosub :SUBROUTINE:
echo “Return value: $return”
goto :EXIT:
:SUBROUTINE:
let return = ($arg*$arg) + $arg + 1
return
:EXIT:
Vedere la pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 119 120

Commenti su questo manuale

Nessun commento