Can you construct this without writing expression as a string?
I dislike constructing jsl expressions as strings, it makes them hard to troubleshoot and checking for syntax errors is a multistep process. This example solution for @A_Zaid's Plotting conditionally...