You are here: Foswiki>System Web>Category>DeveloperDocumentationCategory>PerlDoc (2024-12-23, UnknownUser)Edit Attach
See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview
internal package
Foswiki::Query::ConditionalOP is a
Foswiki::Query::OPBase class for binary conditional operators.
StaticMethod
compare($a, $b, \&fn) → $boolean Apply a binary comparison function to two data, tolerant of whether they are numeric or not. \&fn
takes a single parameter, which is the result of a <=>
comparison on $a
and $b
. The result of applying \&fn
is returned.
ObjectMethod
evalTest($node, $clientData, \&fn) → $result Evaluate a node using the comparison function passed in. Extra parameters are passed on to the comparison function. If the LHS of the node evaluates to an array, the result will be an array made by applying \&fn
to each member of the LHS array. The RHS is passed on untouched to \&fn. Thus (1,-1) > 1
will yield (1,0)
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback