1. Post #1

    July 2008
    32 Posts
    if (a AND b AND c)
    {
    // execute this
    } elseif (!a AND !b AND !c) {
    // execute that
    }

    I thought logic_multicompare would do it, but it seems to be accumulating values.

  2. Post #2
    Gold Member
    djshox's Avatar
    September 2005
    3,962 Posts
    logic_case maybe? :S

  3. Post #3
    proboardslol's Avatar
    December 2008
    1,253 Posts
    try ["code"]["/code"] tags

    but remove the Quotes.

    or try ["cpp"] ["/cpp"]

    remove the Quotes.

  4. Post #4
    Gold Member
    Athena's Avatar
    August 2005
    1,497 Posts
    Use a math_counter and a logic_case. Whenever a, b, or c becomes true, increment the counter, and when any become false, decrement the counter. So if they're all false, the math_counter will have a value of 0, and when they're all true, the math_counter will have a value of 3. Use these values with the logic_case to determine the output.

    fake edit: This could be a problem if they all start false because the case will trigger immediately.

    real edit: This can be avoided with a logic_compare, since you can tell it when to compare. Set the compare value to 3 then compare, then set the compare value to 0 then compare.

  5. Post #5
    Lemon Bottle's Avatar
    July 2008
    44 Posts
    try ["code"]["/code"] tags

    but remove the Quotes.

    or try ["cpp"] ["/cpp"]

    remove the Quotes.
    Oh, you mean the [code][/code] tags?

  6. Post #6
    Zyx
    Guest 3855 is lost and can't find the park exit
    Zyx's Avatar
    February 2005
    2,839 Posts
    Oh, you mean the [code][/code] tags?
    Some people don't know about the [noparse] tags

  7. Post #7
    Chili Banan's Avatar
    January 2009
    470 Posts
    Use math counter, no need for logic_case.

    Edit : It will trigger the "!" value without doing anything though

  8. Post #8
    Everyone has a $1 title
    Skipcast's Avatar
    November 2008
    7,083 Posts
    Use math counter, no need for logic_case.

    Edit : It will trigger the "!" value without doing anything though
    i might be wrong, but i think that could be fixed by enabling it everytime it's supposed to be used, and disabled when it isn't

  9. Post #9
    Chili Banan's Avatar
    January 2009
    470 Posts
    i might be wrong, but i think that could be fixed by enabling it everytime it's supposed to be used, and disabled when it isn't
    Yes, that will work