[pmwiki-users] Random PTVs set with {(randk)} do not retain set values

ccox@endlessnow.com ccox at endlessnow.com
Tue Dec 16 16:56:56 CST 2014


Ptv like most things pmwiki will simply get evaluated like a macro.  Which can be powerful for some things.  Thus you never set a var to the value of a func.  The value is the func in most cases.

Sent on the new Sprint Network

----- Reply message -----
From: "kirpi at kirpi.it" <kirpi at kirpi.it>
To: "PmWiki Users" <pmwiki-users at pmichaud.com>
Subject: [pmwiki-users] Random PTVs set with {(randk)} do not retain set values
Date: Sat, Dec 13, 2014 6:20 PM

If I set a PTV to a random value with {(randk)}[1], say
Random_string: {(randk 7)}
I then would like that specific PTV to retain its value.
Instead,
{$:Random_string}
gets every time a new random value.
I am perhaps just misunderstanding the way PTVs are working;
nonetheless I am trying to find a way to "freeze" PTV random values
once they are set, in order to use them in pages and formulas.

Thanks for any hint :-)

Luigi

----
[1] http://www.pmwiki.org/wiki/Cookbook/MarkupExpressionSamples

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20141216/0da1053b/attachment.html>


More information about the pmwiki-users mailing list