Re: Procedures or (sub)routines




Niels Eernink wrote:
In my program I have three if statements, more or less like so:

if (a<1) ...
if (a>1) & (a<2)...
if (a>2) ...


Niels,

I am not sure if this is what you want, but within a loop, you could
have

(a<1)*(expression1 to be evaluated)...

+ ((a>1)&(a<2))*(expression2 to be evaluated)...

+(a>2)*(expression3 to be evaluated)

Inf

.