Does this work?
using IfElse function diffeq(du,u,p,t) du[1] = IfElse.ifelse(u[1]>0, u[1]+10, u[1]) end