EasyManua.ls Logo

Ericsson MC 218 - Page 88

Ericsson MC 218
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
88
IF usern$=“Jerry” OR usern$=“Sam” THEN
pass$=“disk14”
ELSE
GOTO getpass
ENDIF
SEND pass$
defines pass$ and sends pass$ if either of the conditions are met. You can
use NOT to specify conditions which must not be met for a given action to
be carried out.
IF username$=“” AND NOT superuser$=“Anton99
THEN
GOTO getuserinfo
ELSEIF superuser$=“Anton99” THEN
GOTO superlog
ELSE
GOTO getpass
ENDIF
Here the script will jump to ‘getuserinfo’ only the variable ‘username$
contains no information, and the variable ‘superuser’ does not contain the
information ‘Anton99’.
A
S see OPEN
ASC ASC (<string exp>)
Returns the ASCII code of a character. If a whole string is entered between
the brackets, ASC returns the code for the first character unless you specify
a particular character using LEFT, MID or RIGHT. E.g.
INFO ASC (“H”)
returns the code 72.
B
EEP BEEP <value>,<value>
Activates the MC 218’s buzzer. The first value is the length of the note in
1/32s of a second, and the second indicates the pitch. E.g.
BEEP 16,300
ALERT “Connection dropped”
B
REAK BREAK
Breaks out of a loop.
C
ALL CALL <filename>
Stops running the current script and transfers control to a new one,
without clearing any variables. E.g.
CALL “C:\Documents\Scripts\script2.scr”
starts ‘script2.scr’ running. When the called script ends, the Terminal
emulation screen is shown. The program does not return to the calling
script.

Other manuals for Ericsson MC 218