Wyszukaj:

Cond Expr

(:Summary: PmWiki group header. Includes styles and trail.:)

Documentation index

Variables

{PmWiki.CondExpr$:Audience}

(:Summary:Details of the CondExpr function:)

CondExpr...

is an expression parser. You use it via the "expr" markup, thusly:

   (:if expr equal {$var1} {$var2} xor equal {$var3} {$var4}) 

   (:if expr ! equal 'carrot' {$var4}) 

Operations available are:

  • and
  • or
  • xor
  • &&
  • ||
  • !

I think you can also use parenthetical expressions like

(: if expr ({$bool1} or {$bool2}) and ({$bool3} or {$bool4}) :)

Usage examples here: Cookbook:JJSApprovePage

Documentation index

Variables


Data ostatniej modyfikacji: 10.06.2008, 10:05

Copyright© SIMB 2009.