---
title: Compare if two values are equal
description: Compare if two values are equal
---

[Centrldesk help center ](https://www.centrldesk.com/help)

# [Compare if two values are equal](https://www.centrldesk.com/help/library-math-equals)

 Written by [Sebastian](https://www.centrldesk.com/help/author/sebastian) | Apr 25, 2022 4:11:21 PM

The A=B block compares if two values are identical.

Example A:

Input A with the value 5 and the input B with the value 5 evaluates to true.

Example B:

Input A with the value 5 and the input B with the value 10 evaluates to false.

Result:

The result is true if the values are equal. If the values are not equal, false is evaluated.

Tips and best practices:

All mathematical blocks can calculate floating-point numbers. The separator is a dot, not a comma. Example: 1.5 = 2.7

Library:

Math

[View full post](https://www.centrldesk.com/help/library-math-equals)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Sebastian"
  },
  "dateModified" : "2022-04-29T10:04:25.710Z",
  "datePublished" : "2022-04-25T16:11:21Z",
  "headline" : "Compare if two values are equal using A=B block",
  "image" : {
    "@type" : "ImageObject",
    "height" : 520,
    "url" : "https://7836215.fs1.hubspotusercontent-na1.net/hubfs/7836215/library-math-equals.png",
    "width" : 1900
  },
  "mainEntityOfPage" : "https://www.centrldesk.com/help/library-math-equals",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Centrldesk help center"
  }
}
```