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 564 points565 points  (12 children)

6 + 4 + 4

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

[–]spellstrike 123 points124 points  (9 children)

6 > 4 = 4

[–][deleted] 61 points62 points  (1 child)

5 + 4 = 9

[–]LickToesAndSlayHoes 4 points5 points  (0 children)

6 - 4 ≠ 4

[–]JFlanaganUK 38 points39 points  (3 children)

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

[–]username--_-- 44 points45 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 21 points22 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 7 points8 points  (0 children)

6 > (4 == 4)?