On Tue, Jul 10, 2007 at 07:07:09PM +0200, noskule wrote:
hi list
I would like to find out if a string occurs in a value and tried the
match condition
$showfields = FieldAFieldBFieldC
(:if match '{$sowhfields}' FieldA:)
...formfield
(:if match '{$sowhfields}' FieldB:)
...formfield
The ability to match on a regular expression, if I decide to keep
it, will undoubtedly become (:if regex ... :) .
Please decide so ;-)
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
hi list
I would like to find out if a string occurs in a value and tried the
match condition
$showfields = FieldAFieldBFieldC
(:if match '{$sowhfields}' FieldA:)
...formfield
(:if match '{$sowhfields}' FieldB:)
...formfield
is there a way how to do it?
so far I tested with the match
noskule schrieb:
hi list
I would like to find out if a string occurs in a value and tried the
match condition
$showfields = FieldAFieldBFieldC
(:if match '{$sowhfields}' FieldA:)
...formfield
(:if match '{$sowhfields}' FieldB:)
...formfield
arg, I did a misstake in the mail, I
I tried:
(:expr expression string:)
exapmles:
(:expr 'FieldA' '{$showfields}':)
something like this shouls work to:
(:expr '^FieldA' '{$showfields}':)
$Conditions['expr'] = 'CompareArgs($condparm) == 0';
function CompareArgs($arg) {
$arg = ParseArgs($arg); return preg_match(@$arg[''][0],
noskule schrieb:
I tried:
(:expr expression string:)
exapmles:
(:expr 'FieldA' '{$showfields}':)
something like this shouls work to:
(:expr '^FieldA' '{$showfields}':)
$Conditions['expr'] = 'CompareArgs($condparm) == 0';
function CompareArgs($arg) {
$arg = ParseArgs($arg);