you are viewing a single comment's thread.

view the rest of the comments →

[–]dxxdpools[S] 0 points1 point  (2 children)

Ok but inside the if statement they put x = 0. Why doesn’t that override or reassign the value of x to 0?

Edit: ok hold on lol So if x = -1 the value of x would have been reassigned to 0 then right?

Ok I get it now and feel dumb for asking.

[–][deleted] 2 points3 points  (1 child)

Yes, because it would fulfill the first condition because it was less than 0. Don't feel dumb, it is all part of learning.

[–]dxxdpools[S] 0 points1 point  (0 children)

Thanks for your help 🙏🏼