[pmwiki-users] page text variables and conditionals

adam overton a at plus1plus1plus.org
Thu May 1 17:24:56 CDT 2008

very good to know about, peter
maybe soon i'll have a nice summer afternoon to wrap my noggin around  
the syntax wonders of wikish.

On 1 May 2008, at 11:42 AM, Peter & Melodye Bowers wrote:

>> has anyone yet figured out an ingenious workaround for passing page
>> text variables thru conditionals?
> Using WikiSh to set a PV (note: not a PTV):
> ===(snip)===
> {earlymx(wikish if true; then; set --pv -s anchor = true; else; set  
> --pv -s
> anchor = othertrue; fi)}
> {$anchor}  -- note there is no colon since it is PV instead of PTV
> ===(snip)===
> As written above that results in "true".  If you change the  
> condition to
> "false" then it results in "othertrue".
> WikiSh does not require any kind of configuration to do this type  
> of thing -
> just a straight include_once().
> -Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080501/a2cb1373/attachment.html 

More information about the pmwiki-users mailing list