Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusion on part8 in README.md #24

Closed
dslu7733 opened this issue Jun 2, 2020 · 1 comment
Closed

confusion on part8 in README.md #24

dslu7733 opened this issue Jun 2, 2020 · 1 comment

Comments

@dslu7733
Copy link

dslu7733 commented Jun 2, 2020

  if (condition is true) 
    perform this first block of code
  else
    perform this other block of code

In readme, you write it like the following.

       perform the opposite comparison
       jump to L1 if true
       perform the first block of code
       jump to L2
L1:
       perform the other block of code
L2:

But there seems some wrong in jump to L1 if true. Do you mean jump to L1 if false ?

@DoctorWkt
Copy link
Owner

I mean: jump to L1 if the opposite comparison just performed is true.
Example:

if (a== b) {
  do this;
} else {
  do that;
}
      compare if a != b
      jump to L1 is this != comparison was true
     // Do this code
    jump to L2
L1:  // Do that code
L2:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants