Hi esacay,
You can use the conditional operator which has the following syntax:<CONDITION>?<VALUE_ON_TRUE>:<VALUE_ON_FALSE>
http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:Operators#Conditional_Operator_.28.3F:.29
So, in your case:B(x)=x<x0?N*exp((x-x0)/B0)):0;
Note: I have changed the parameter B to B0 as it conflicts with the function name.
--Hideo Fujii
OriginLab