+ Reply to Thread
Results 1 to 2 of 2

Thread: Set Variable - Bitwise OR

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Set Variable - Bitwise OR

    Is there an operand to easily set a variable using bitwise OR's?

    I have a number of contants describing the positions in a checkbox variable. E.g.

    #set compiler variable [OPTION1] = "1"
    #set compiler variable [OPTION2] = "2"
    etc.

    However I have options that have dependencies. That is, if OPTION1 is selected, then OPTION2 should be forced to 1 as well. So after the Checkbox, I'd like to test if OPTION1 is set and if so, then...

    Set Variable %OPTION% position [OPTION2] to "1" (or "0")

    I can see how this can also be used to symbolically set up the defaults, rather than hardcoding in a value ahead of time. (This may also help to address any confusion, because the bitwise Checbox operands start from the left/significant bit, rather than the right/least significant bit)

    Does this functionality or equivalent, already exist?

    Thx

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

    Default Re: Set Variable - Bitwise OR

    Hello,

    Good question! I'll get someone working on it and post back here whatever we find.

+ 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. #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
  2. #00011: How do I add directories to the PATH system environment variable?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-08-2006, 01:17 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
  •