Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8745989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:07:30+00:00 2026-06-13T12:07:30+00:00

I have the following code: c.m & 3 || (b |= 2, 65 <=

  • 0

I have the following code:

c.m & 3 || (b |= 2, 
  65 <= a && 90 >= a ? a = 65
: 48 <= a && 57 >= a ? a = 48
: b & 1 ? 97 <= a && 122 >= a ? a = 65
: 197 == a || 229 == a ? b &= 5
: 192 <= a && 687 >= a ? a = 192
: 1536 <= a ? a = 1536
: 912 <= a ? a = 912
: 160 <= a ? a = 160
: 127 <= a ? b &= 5
: 33 <= a ? a = 59 
: b &= 5
: 48 > a ? b &= 5
: 65 > a ? a = 59
: 96 > a ? b &= 5
: 112 > a ? a = 96
: 187 > a ? b &= 5
: a = 59);

I’m confused even where to start. Is || a binary operator? why is there a comma at beginning? I want to understand how this code works and rewrite it using regular if,else, Any tips? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:07:30+00:00Added an answer on June 13, 2026 at 12:07 pm

    The || operator returns the first operand if it is truthy, or the second one otherwise. && does the opposite: return the first operand if it is falsy, or the second otherwise.

    a ? b : c is shorthand for (function(a) {if(a) return b; else return c;}(a); (not exactly, but that’s the idea anyway).

    The , operator evaluates both its operands and returns the second.

    With all that in mind, the code above becomes:

    if( !(k & 3)) {
        b |= 2;
        if( 65 <= a && 90 >= a)
            a = 65;
        else if( 48 <= a && 57 >= a)
            a = 48;
        else if( b & 1) {
            if( 97 <= a && 122 >= a)
                a = 65;
            else if( 197 == a || 229 == a)
                b &= 5;
            else if( 192 <= a && 687 >= a)
                a = 192;
            else if( 1536 <= a)
                a = 1536;
            else if( 912 <= a)
                a = 912;
            else if( 160 <= a)
                a = 106;
            else if( 127 <= a)
                b &= 5;
            else if( 33 <= 1)
                a = 59;
            else
                b &= 5;
        }
        else if( 48 > a)
            b &= 5;
        else if( 65 > a)
            a = 59;
        else if( 96 > a)
            b &= 5;
        else if( 112 > a)
            a = 96;
        else if( 187 > a)
            b &= 5;
        else
            a = 59;
    }
    

    I can’t tell you what it means, though. It’s just a bunch of numbers being checked. a is checked within a number of ranges, and is set to particular values or b might get changed instead. It’s a huge mess to me, it needs context to make sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing application using backbone.js & jquery. I have following code in model: runReport:
I have the following code inside a loop: Range(N & i + 1).Formula =
I have the following code: if ( (isset($_GET['slAction'])) && ($_GET['slAction'] == manage_label) ) {
I have the following code: def maturities InfoItem.find_all_by_work_order(self.work_order).map(&:maturity) end I was thinking about changing
I have the following code: class SomeClass {}; class SomeOtherClass { SomeClass& someObj; public:
I have the following code string three() { return three; } void mutate(string& ref)
I have the following code: %let host = HostThatSendsEmail; %let todayDate = &SYSDATE9; signon
I have the following code: $(document).ready(function() { $.getJSON('../includes/_quiz.php?class_id=163&course_id=183',function(data){ $.each(data,function(k,v){ questions[k] = v.question; answers[k*4] =
I have the following code: template <typename T> LuaCall& operator>>(T) { BOOST_STATIC_ASSERT(sizeof(T) == 0);
I have the following code int main() { int a=6; void *p; p=&a; p++;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.