Lor
Lor
CDCloudflare Developers
Created by Lor on 10/9/2023 in #general-help
Conditional Values in Cloudflare Expressions
How do I do conditional values in Cloudflare expressions? I'm not sure if this is correct. This is something that I will be adding on a Redirect Rule as a dynamic redirect.
concat("https://www.site.com/", (ip.src.country not in {"SG", "AU", "UK"} ? "UK" : ip.src.country), "/some-page/")
concat("https://www.site.com/", (ip.src.country not in {"SG", "AU", "UK"} ? "UK" : ip.src.country), "/some-page/")
1 replies