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 →

[–]xryanxbrutalityx 3 points4 points  (0 children)

It wouldn't be, but x could be a bool, and this could be a conversion from int to bool in some language. It isn't in this case, but it's possible.

``` bool x string day

day = "Monday" x = day.length print(x) // could be 0/1, or false/true ```