# Featured Action Nodes

This Topic features some nice-to-know Action Nodes relevant to logic, functionality and flow.

## Actions Flow

### While

The While action node runs a block of action nodes as long as a condition evaluates to true.

**Article**:

* [While](https://docs.appfarm.io/library/action-nodes/while)

**Example in Showroom:**

* [Showroom example](https://showroom.appfarm.app/action-nodes/while)

### Foreach & Next Iteration

The Foreach action node loops over objects in a data source and runs a block of action nodes for each object. You may exit a Foreach-loop (prior to looping all objects) using the Next Iteration action node.

**Article:**

* [Foreach](https://docs.appfarm.io/library/action-nodes/foreach)

**Example in Showroom:**

* [Showroom example](https://showroom.appfarm.app/action-nodes/foreach)

### Block

The Block action node has a few settings allowing for either parallel or "first-to-finish" execution of the action nodes inside it.

**Article:**

* [Block](https://docs.appfarm.io/library/action-nodes/block)

### Sleep

Adding a Sleep action node to an action will allow the Action to pause for a given number of milliseconds. Can be useful e.g. if collecting data from an external system fails, and you want to retry automatically 2 seconds later.

## Other action nodes

### Run Code

Allows you to run Javascript code.&#x20;

**Article**:

* [Run Code](https://docs.appfarm.io/library/action-nodes/run-code)

**Example in Showroom**:

* [Showroom example](https://showroom.appfarm.app/action-nodes/run-code)

### Export Data

Export data to a CSV file.

**Article**:

* [Export Data](https://docs.appfarm.io/library/action-nodes/export-data)

**Example in Showroom:**

* [Showroom example](https://showroom.appfarm.app/action-nodes/exportdata)

### Generate Document

Generate a PDF file using HTML and your data.

**Article**:

* [Generate Document](https://docs.appfarm.io/library/action-nodes/generate-document)

**Example in Showroom:**

* [Showroom example](https://showroom.appfarm.app/action-nodes/generate-document)

### Set theme

Change the Theme of your App runtime. Useful e.g. for changing to Dark mode, or when creating a white-label App with different Theming per customer.

**Article**:

* [Set theme](https://docs.appfarm.io/library/action-nodes/set-theme)

**Example in Showroom:**

* [Showroom example](https://showroom.appfarm.app/action-nodes/set-theme)
