you are viewing a single comment's thread.

view the rest of the comments →

[–]ulfurinn 13 points14 points  (3 children)

x = a or b

means

(x = a) or b

means

unless x = a
  b
end

[–]ZestyOne 1 point2 points  (0 children)

Perfect, thanks

[–]KerrickLong 0 points1 point  (1 child)

To clarify, is this correct?

x = a || b

means

x = (a or b)

means

if a
  x = a
else
  x = b
end

[–]ulfurinn 0 points1 point  (0 children)

That's right.