11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EQS and NES FunctionsThe EQS function tests if the first string is equal to the second. The NES function tests if the first string is notequal to the second. These tests are case sensitive, so “Ab” is not equal to “AB”.Format:Where:eqs(string1, string2, if_true [ , if_false])nes(string1, string2, if_true [ , if_false])string1, string2if_trueif_falseExamples:these can be variable or literal string expressions.a string expression whose value the function takes if the test is successful.an optional string expression whose value the function takes if the test fails. If thisargument is omitted, the function takes on the value of a null string.Assume when connecting to most systems with a Username “GUEST”, a password is usually not required.Set the Username variable “usr” to the text “person”. Then, if the Username is NOT “GUEST”, ask for aPassword:eFT> set var usr personeFT> {nes(upper(usr),"GUEST","ask -prompt ""Password? "" pass")}Password? _______Set the Username variable “usr” to the text “guest”. Then, if the Username is NOT “GUEST”, ask for aPassword:eFT> set var usr guesteFT> nes(upper(usr), “GUEST”, “ask –prompt ” “Password? ” “pass”)}eFT>In most cases, when using a Username “GUEST” to make a connection, if a Password is required (andknown) it can be automatically set to the correct input. To try this, set the Username variable “usr” to the text“guest”. Then, if the Username is “GUEST”, set the password to “NETEX”:eFT> set var usr guesteFT> {eqs(lower(usr), “guest”, “set var pass netex”)}eFT>REF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!