Avaya Writing Technician Interface Scripts User Manual Page 53

  • Download
  • Add to my manuals
  • Print
  • Page
    / 120
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 52
Command Reference
2-23
Example:
The following example shows how to use the let command to set up a slotmask:
let slot = $<Enter Slot Number>
let -h slotmask = 0x80000000 >> ($slot - 1)
echo “slot #” $slot “slotmask” $slotmask
Examples:
Additional examples using the let command are shown below:
let b = 5 * (10**2);
let capA = 'A'
set env letter “A”
let capA = '$letter'
let len = strlen(“abcdef”)
setenv string “answer=1”
let len = strlen(string)
let index = strindex(string, “wer”)
let index = strpbrk(string, “=:;”)
if $index = 0 then; echo “Missing Delimiter”
let index = strmatch(string, “pat”)
if $index = 0 then; echo “No match found”
Page view 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 119 120

Comments to this Manuals

No comments