Subfield with local variable
I ran into issue when trying to pull the param value using a local variable. It throws an error about expected STRING expression on the last line due to subfield function is not prefixed with the
std. namespace. Is that another way to solve this? Thanks!
declare local var.param STRING;
set var.param = "something"; // a computed variable from upstream
set var.value = subfield(req.url.qs, var.param, "&");
Please sign in to leave a comment.