int

Syntax

(*int)${...}
(*int)<numeric-string>

Examples

Definition

Treat the provided value as an integer. Under the hood, the PHP core intval function casts the value to an integer type.

The following policy denies access to all website URLs that start with /third-grade/ if the callback function current_user_grade returns a value that is not equals to 3.

{
    "Statement": {
        "Effect": "deny",
        "Resource": "URI:/third-grade/*",
        "Condition": {
            "NotEquals": {
                "(*int)${CALLBACK.current_user_grade}": 3
            }
        }
    }
}