Velocity inlet: With if clauses

I found the answer. You can define velocity inlet one as

v = 0*(t < tmin)

and then a second condition as

v = function*(t>tmin)

I believe this should work.