Skip to content

Changelog

New updates and improvements at Cloudflare.

Back to all posts

Handle missing values with coalesce()

View as MarkdownAgent setup

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.