Catalog / Cloudflare Developer Platform

Rules - Handle missing values with coalesce()

10 days agoOriginal notes

The coalesce() function returns the first argument that is not nil. Use it to provide a fallback in rule expressions:

http.request.uri.path eq coalesce(http.request.uri.args["expected_path"][0], "/")

For details, refer to the coalesce() function reference.