internal package Foswiki::Query::ConditionalOP

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::OP

Base 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)

Topic revision: r1 - 04 Jul 2015, UnknownUser

  • User Reference
  • BeginnersStartHere
  • EditingShorthand
  • Macros
  • MacrosQuickReference
  • FormattedSearch
  • QuerySearch
  • DocumentGraphics
  • SkinBrowser
  • InstalledPlugins

  • Admin Maintenance
  • Reference Manual
  • AdminToolsCategory
  • InterWikis
  • ManagingWebs
  • SiteTools
  • DefaultPreferences
  • WebPreferences

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Structural Basis of Medical Practice? Send feedback