public boolean isTrue() {
	  if(type == Type.BOOL && value != null) {
	    return ((Boolean)value).booleanValue();
	  }
	  return false;
	}
Return true/false for BOOL type
hplsql/src/main/java/org/apache/hive/hplsql/Var.java