Skip to main content

int

Vasyl MartyniukLess than 1 minute

Syntax

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

Examples

  • (*int)${AAM_CONFIG.minimum_legal_age} - converts AAM ConfigPress property to integer value.
  • (*int)45.00 - converts string value 45.00 to integer 45.

Definition

Treat the provided value as an integer. Under the hood, the PHP core intvalopen in new window 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
            }
        }
    }
}