scroll to top
Stuck on your essay?
Get ideas from this essay and see how your work stacks up
Word Count: 631
30 Variables Scripts may contain variables Variable names must begin with a letter or an underscore and may contain any sequence of upper- or lower-case letters digits and underscores You cannot use a reserved word as a variable name For more information see the list of reserved words at the end of this document You must declare variables before you use them When you declare a variable you must also define its type A variable of a certain type may only contain values of that same type The following three types of variables are supported TypeDescription integerA negative or positive number such as 7 -12 or 5698 stringA series of characters enclosed in double-quotes for example Hello world or Enter password booleanA logical boolean value of TRUE or FALSE Variables are assigned values using the following assignment statement variable expression The variable gets the evaluated expression Examples integer count 5 integer timeout 4 3 integer i boolean bDone FALSE string szIP getip 2 set ipaddr szIP 31 System Variables System variables are set by scripting commands or are determined by the information your enter when you set up a Dial-Up Networking connection System variables are read-only which means they cannot be changed within the script The system variables are NameTypeDescription USERIDStringThe user identification for the current connection This variable is the value of the user name specified in the Dial-Up Networking Connect To dialog box PASSWORDStringThe password for the current connection This variable is the value of the user name specified in the Dial-Up Networking Connect To dialog box SUCCESSBooleanThis variable is set by certain commands to indicate whether or not the command succeeded A script can make decisions based upon the value of this variable FAILUREBooleanThis variable
@Kibin is a lifesaver for my essay right now!!
- Sandra Slivka, student @ UC Berkeley
Wow, this is the best essay help I've ever received!
- Camvu Pham, student @ U of M
If I'd known about @Kibin in college, I would have gotten much more sleep
- Jen Soust, alumni @ UCLA