Apologies if this has been asked before, but I couldn\'t see it anywhere.
Essentially I\'ve come across a scenario where i need to make use of an if statement inside
By the time you say rate = lambda whatever... you've defeated the point of lambda and should just define a function. But, if you want a lambda, you can use 'and' and 'or'
rate = lambda whatever...
lambda(T): (T>200) and (200*exp(-T)) or (400*exp(-T))