+ Reply to Thread
Results 1 to 2 of 2

Thread: Variable Initialization

  1. #1

    Default Variable Initialization

    Do Variables need to be initialized to 0 or ""?

    If my own variable already has a non-zero or non-null value at script entry, is it reasonable to expect that it was set by a command line option?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Variable Initialization

    Hello,

    You can set it to 0, or "" or to any other value.

    The first variable declaration (Set Variable) always receives the variable value passed through the command line.

    So if you set it to -1 to initialize it and it is still -1 after the Set Variable declaration then it could mean that the command line did not pass the value to the variable.

    Does this help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Set Variable - Bitwise OR
    By LoboMgr in forum SetupBuilder 'How Do I' Questions
    Replies: 1
    Last Post: 06-07-2006, 11:09 AM
  2. #00015: Is there a system PATH Environment Variable Size Limit in XP?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 04-03-2006, 07:42 AM
  3. Using a variable in Install Files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 11
    Last Post: 01-24-2006, 01:30 AM
  4. Declaring a Variable used from Command Line
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 21
    Last Post: 01-19-2006, 09:41 AM
  5. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •