package UR::BoolExpr::Template::PropertyComparison::False;
use strict;
use warnings;
use UR;
our $VERSION = "0.41"; # UR $VERSION;
UR::Object::Type->define(
class_name => __PACKAGE__,
is => ['UR::BoolExpr::Template::PropertyComparison'],
);
sub _compare {
my ($class,$comparison_value,@property_value) = @_;
no warnings;
if (@property_value == 0) {
return 1;
} else {
for (@property_value) {
return 1 if (! $_); # Returns true if _any_ of the values are false
}
return '';
}
}
1;
=pod
=head1 NAME
UR::BoolExpr::Template::PropertyComparison::False - evaluates to true if the property's value is false
If the property returns multiple values, this comparison returns true if any of the values are false
=cut