I have a very simple problem. How to create custum component similrar to real expresion block (this block doesn't accept piecewise function) who generates piecewice function f:=x->piecewise(x<=2,0,x>=2 and x<=6,exp(-2x),x>=6,0) on output and nothing on input. When I modificate algebraic equtation template and input piecewise function there is an eror who doesn't accept the syntax for piecewise.
> eq:= [f:=x->piecewise(x<=2,0,x>=2 and x<=6,exp(-2 x),x>=6,0) ];
print(`output redirected...`); # input placeholder
Error, invalid sequence
> sys := DynamicSystems[AlgEquation](eq, inputvariable = [nothing], outputvariable = [f]);