# TokenComparison

An enum-like class that represents the result of comparing two Tokens.

The return type of `Token.compareStrings`.

- Source: [`core/lib/token.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/token.ts#L16)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const tokenComparison = cdk.TokenComparison.BOTH_UNRESOLVED;
```

## Properties

- `BOTH_UNRESOLVED`: [TokenComparison](/cdk/api/v2/docs/aws-cdk-lib.TokenComparison.html) (required) (static) — This means both components are Tokens.

- `DIFFERENT`: [TokenComparison](/cdk/api/v2/docs/aws-cdk-lib.TokenComparison.html) (required) (static) — This means we're certain the two components are NOT Tokens, and different.

- `ONE_UNRESOLVED`: [TokenComparison](/cdk/api/v2/docs/aws-cdk-lib.TokenComparison.html) (required) (static) — This means exactly one of the components is a Token.

- `SAME`: [TokenComparison](/cdk/api/v2/docs/aws-cdk-lib.TokenComparison.html) (required) (static) — This means we're certain the two components are NOT Tokens, and identical.
