...
...
...
...
...
...
...
...
...
...
Info | ||
---|---|---|
| ||
This routine is available starting with Power Scripts™ for Confluence v1.1.0. |
Syntax
getPersistentVar(pageId, varName) // get page persistent variable
...
Returns the value of the specified persistent variable.
Examples
Example 1
This example gets the value of the page persistent variable named "pageViews".
Code Block |
---|
const string varName = "pageViews";
const number pageId = getPage("TEST", "Example page");
const number pageViews = getPersistentVar(pageId, varName); // conversion from string to number is performed automatically |
...