Reply to Thread

Post a reply to the thread: Set Variable - Bitwise OR

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 06-07-2006, 11:09 AM
    linder

    Re: Set Variable - Bitwise OR

    Hello,

    Good question! I'll get someone working on it and post back here whatever we find.
  • 06-07-2006, 11:02 AM
    LoboMgr

    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

Posting Permissions

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