Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ppl:statements:account [2024-03-27 17:02] – stimpy | ppl:statements:account [2026-10-08 11:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== 1) the ACCOUNT() function ===== | ===== 1) the ACCOUNT() function ===== | ||
| - | | + | ``` |
| + | ACCOUNT(INTEGER field) | ||
| + | ``` | ||
| Returns amount of credits charged for services corresponding to the field parameter. | Returns amount of credits charged for services corresponding to the field parameter. | ||
| - | **Example: | + | **Example: |
| - | println "You have been charged ", | + | |
| + | ``` | ||
| + | println "You have been charged ", | ||
| + | ``` | ||
| field is the field number to access (1-14) or using [[ppl: | field is the field number to access (1-14) or using [[ppl: | ||
| See the [[ppl: | See the [[ppl: | ||
| + | |||
| The account function is used to retrieve account information from PCBoard. These are the constants which can be used with the [[ppl: | The account function is used to retrieve account information from PCBoard. These are the constants which can be used with the [[ppl: | ||
| ===== 2) The ACCOUNT Statement | ===== 2) The ACCOUNT Statement | ||
| - | | + | ``` |
| + | ACCOUNT INTEGER field, INTEGER value | ||
| + | ``` | ||
| `field` is a value between 0-14. Using system constants is reccomended. value is the amount of credits to add or subtract to field the field | `field` is a value between 0-14. Using system constants is reccomended. value is the amount of credits to add or subtract to field the field | ||
| **Example: | **Example: | ||
| - | | + | |
| + | ``` | ||
| + | ACCOUNT DEB_CHAT,10 | ||
| + | ``` | ||
| The [[ppl: | The [[ppl: | ||
| - | The valid constants for this statement are the same as those used for the [[ppl: | + | |
| + | The valid constants for this statement are the same as those used for the [[ppl: | ||
| --- | --- | ||