Skip to content

Instantly share code, notes, and snippets.

# Put your local settings here. This will override corresponding settings in settings.py.
# PLEASE DO NOT CHECK IN THIS FILE.
ADMINS = (
('Shabda', 'shabda@uswaretech.com'),
)
conf.py
abc.txt
def.txt
makefile
_templates\
page.html
In [1]: None
In [2]: None > 10
Out[2]: False
In [3]: None < 10
Out[3]: True
In [4]: None == None
Out[4]: True
//#Javascript
>>> null
null
>>> null == 10
false
>>> null > 10
false
>>> null < 10
true
>>> null == null
Welcome to psql 8.3.7, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
test_psql=> select null as data;
data
public class Test{
public static void main(String[] args){
//System.out.println(null);
//System.out.println(null > 10);
//System.out.println(null < 10);
System.out.println(null == null);
System.out.println(10 == 10);
}
}
groovy
http://www.twitpic.com/agmo4/full
irb(main):001:0> nil
=> nil
irb(main):002:0> nil > 10
NoMethodError: undefined method `>' for nil:NilClass
from (irb):2
from :0
irb(main):003:0> 10 > nil
ArgumentError: comparison of Fixnum with nil failed
from (irb):3:in `>'
from (irb):3
phpsh (c)2006 by Charlie Cheever and Dan Corson and Facebook, Inc.
type 'h' or 'help' to see instructions & features
New Feature: You can use the -c option to turn off coloring
php> echo(null > 10)
php> echo(null < 10)
1
php> echo(null == 10)
php> echo(null == null)
1
php>
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> print(nil)
nil
> print(nil > 10)
stdin:1: attempt to compare number with nil
stack traceback:
stdin:1: in main chunk
[C]: ?
> print(nil < 10)
stdin:1: attempt to compare nil with number