Can't use variable in SWITCH output

I’m attempting to determine the value of the SWITCH input, which will either be something like HTML or NULL. Here is a testing example:
image

This is how the variable evaluates:
“switch($9.body.body.contentType;“html”;“file.” $9.body.body.contentType;2;2)” : file.

So it is evaluating to the first caluse (correctly) and then should be outputting “file.html” as the value of $9.body.body.contentType is html, but instead I just get “file.”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.