1
# See bottom of file for copyright and license details
5
---+ package Foswiki::Query::OP_ne
9
package Foswiki::Query::OP_ne;
10
use base 'Foswiki::Query::BinaryOP';
16
return $class->SUPER::new( name => '!=', prec => 500 );
22
return $this->evalTest(
24
\&Foswiki::Query::BinaryOP::compare,
25
sub { $_[0] != 0 ? 1 : 0 }
33
Module of Foswiki - The Free and Open Source Wiki, http://foswiki.org/, http://Foswiki.org/
35
# Copyright (C) 2008 Foswiki Contributors. All Rights Reserved.
36
# Foswiki Contributors are listed in the AUTHORS file in the root
37
# of this distribution. NOTE: Please extend that file, not this notice.
39
# Additional copyrights apply to some or all of the code in this
42
# Copyright (C) 2005-2007 TWiki Contributors. All Rights Reserved.
43
# TWiki Contributors are listed in the AUTHORS file in the root
44
# of this distribution. NOTE: Please extend that file, not this notice.
46
This program is free software; you can redistribute it and/or
47
modify it under the terms of the GNU General Public License
48
as published by the Free Software Foundation; either version 2
49
of the License, or (at your option) any later version. For
50
more details read LICENSE in the root of this distribution.
52
This program is distributed in the hope that it will be useful,
53
but WITHOUT ANY WARRANTY; without even the implied warranty of
54
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
56
As per the GPL, removal of this notice is prohibited.
58
Author: Crawford Currie http://c-dot.co.uk