Avaya Writing Technician Interface Scripts Uživatelský manuál Strana 65

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 116
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 64
Command Reference
308660-14.00 Rev 00
2-35
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.
Syntax
The
return
command has the following syntax:
return
Example
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:
Zobrazit stránku 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 115 116

Komentáře k této Příručce

Žádné komentáře