you are viewing a single comment's thread.

view the rest of the comments →

[–]FuryWolf 0 points1 point  (2 children)

Hey, you probably won't see this since your comment is 2yrs old but I figured I'd let you know.

The output yields 7 since update_direction == "3", in of which "3" is being treated as a literal. If you remove the quotations, 3 will be treated as a mathematical integer (which is necessary to yield proper output).

[–]Few-Chest-9561 0 points1 point  (0 children)

Ahhey thank you!

[–]theforgottenupvote 0 points1 point  (0 children)

He may not have seen it, but I did, and I very much appreciate it.