# doall

### doall(expression1, expression2, ...)

Do each of the expressions in the parameter list - return the result of the last expression.

## Arguments

Argument | Data Type | Description
Expression 1, 2, 3 | expression | one or more expressions, separated by commas

## Returns

The result of the last expression in the list.

## Description

This function allows you to execute multiple expressions in a single operation. Possible examples might include:

- write information to multiple log files.
- write information to a log file and also send an email.

## Examples

Example | Returns | Description
doall(log("Error occured"), sendemail("admin@acme.com", "inaport@acme.com", "", "Error occured", "Body of email")) | True if email sent | Write a message to the log file, and send an email to the system administrator.

## See Also

sendemail(), log(), stop()