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