Can I use if statements in ParameterisedFunctions.jl? Is there a work around?

Duplicate with a solution posted: