1 module orelang.operator.IsNullOperator;
2 import orelang.operator.IOperator,
3        orelang.Engine,
4        orelang.Value;
5 
6 class IsNullOperator : IOperator {
7   /**
8    * call
9    */
10   public Value call(Engine engine, Value[] args) {
11     if (engine.eval(args[0]).type == ValueType.Null) {
12       return new Value(true);
13     } else {
14       return new Value(false);
15     }
16   }
17 }