Skip to main content

Equals

Vasyl MartyniukLess than 1 minute

The Equals condition type performs the literal comparison and checks if two values are identical (including value type).

{
    "Condition": {
        "Equals": {
            "(*bool)${USER.Authenticated}": true,
            "(*int)${HTTP_GET.p}": 6,
            "${HTTP_POST.page}": "aam"
        }
    }
}

Note!

It is the literal value comparison. It means that the integer value 6 does not equal the string value '6' If you do not know ahead what value type will be injected into the condition, consider to type cast it.