[ create a new paste ] login | about

Link: http://codepad.org/0Sct26Oi    [ raw code | output | fork ]

slevy1ster - Ruby, pasted on Jun 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
print 2 == 1 + 1
print true == 1
print true == true
print true == "1"

print "\n"
print false == 0
print false == false
if (0) 
    puts "0 is truthy"
end
if (1) 
    puts "1 is truthy"
end


Output:
1
2
3
truefalsetruefalse
falsetrue0 is truthy
1 is truthy


Create a new paste based on this one


Comments: