# Snippet - Counters & Running Totals

This snippet sample project demonstrates how to configure appRules Actions to generate and maintain counters and running totals without using scripts or code. &#x20;

The project uses a single ViewRuntimeValues activity accessing actions and conditions that have been defined for the demonstration.&#x20;

&#x20;

## **Actions**

9 Actions have been defined in the project:

<figure><img src="/files/cJmQ6YGCq0s5MnJcNyaZ" alt=""><figcaption></figcaption></figure>

## Conditions

2 Conditions have been defined in the project:

<figure><img src="/files/LjmXAugk21ucz8FebxSi" alt=""><figcaption></figcaption></figure>

## ViewRuntimeValues Activity

17 Entries have been added in the ViewRuntimeValues activity used in the project:

<figure><img src="/files/gpnCZRDaTbp3bokJ0AJZ" alt=""><figcaption></figcaption></figure>

**When the project is run the results are shown as follows:**

<figure><img src="/files/VUg1PsrwV8GPm1jICoYP" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/samples/sample-projects/snippets/snippet-counters-and-running-totals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
