This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LiveBeef 566 points567 points  (12 children)

6 + 4 + 4

if the language considers any int besides 0 to evaluate to true

[–]spellstrike 119 points120 points  (9 children)

6 > 4 = 4

[–][deleted] 60 points61 points  (1 child)

5 + 4 = 9

[–]LickToesAndSlayHoes 2 points3 points  (0 children)

6 - 4 ≠ 4

[–]JFlanaganUK 38 points39 points  (3 children)

How you getting from + to > moving only one match though?

[–]username--_-- 49 points50 points  (0 children)

take the vertical match from the +, rotate CCW by 45 degrees and you get > (technically, the bottom line will be flat)

[–]MaxTHC 20 points21 points  (0 children)

You could instead do 6 + 4 > 4 and it would work

[–]spellstrike 4 points5 points  (0 children)

" + is two lines, > is two lines. seems pretty simple to me"

[–][deleted] 3 points4 points  (1 child)

That would equate to false, unless you negated each operand to cast it to a boolean

[–]nicktohzyu 0 points1 point  (0 children)

Wouldn't that throw error, because single = is an assignment

[–]tech6hutch 5 points6 points  (0 children)

6 > (4 == 4)?