# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FLBuqfPNx04vRtj7ElDyo%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FlLZP8GVoLGkbGYqG3yUk%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FZvJ1jrXGTpJsrE31L5Je%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>
