# Max (Integer)

| **Name**    | ***Max (Integer)***                                                                    |
| ----------- | -------------------------------------------------------------------------------------- |
| Syntax      | Max (Integer first, Integer second)                                                    |
| Purpose     | To return the greater of two integer values.                                           |
| Description | Returns the maximum of two integer values.                                             |
| Return Type | Int64                                                                                  |
| Parameters  | <p>first \[System.Int64] – First value</p><p>second \[System.Int64] – Second value</p> |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/nWpteIKDVjnvjAj1nOvi/0.png)

**Example**

In this example, we are passing integer values to the function transformation object using a *Variables* object.

**Note:** This function also takes into account negative values.

Where,

*first* = 1234

*second* = 4321

<figure><img src="https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/tVMREvvbosgKwXbnkh6B/1.png" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the greater integer value has been returned.

<figure><img src="https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/8UZU7gzs5ozmuYkehAuJ/2.png" alt=""><figcaption></figcaption></figure>
