I wrote some code with this structure
function(x) x >=0 && plot!(something) x <=0 && plot!(something different) end
because I tried to select with the value of
x what would be plotted: one of them of both plots at once. The code worked as expected for values of
x lesser or equal to zero, but for positive values the return of the function was not a plot if not just the statement
How to make that my program work fine also for positive values of
I have also a second question: there is some macro or package that extends the control flow of Julia for something like cases? That is: a list of independent blocks of code that depend on a unique variable, something similar to what I tried in my toy program above, but that indeed execute each block independently.