parameter limits

Post here any problems you have encountered in your use of Go Calc

parameter limits

Postby bitman » Tue Oct 07, 2008 12:49 am

I would have liked to restrict a variables range of values by reference to another variable, for example Total People = 5, so Ladies cannot be > 5, can this be done?
bitman
 
Posts: 3
Joined: Tue Oct 07, 2008 12:41 am

Re: parameter limits

Postby bitman » Tue Oct 07, 2008 8:02 am

I guess what I'm asking is can the min and max fields use a calculation?
bitman
 
Posts: 3
Joined: Tue Oct 07, 2008 12:41 am

Re: parameter limits

Postby mgkennard » Tue Oct 07, 2008 6:38 pm

Hello,

You would need to use the if function.

So for example,

if(ladies < total people, ladies, total people)

This says if ladies is smaller than total people then use ladies, otherwise use the maximum value which is total people.

If this is not what you require please let me know!

Matthew
Apps On The Move
mgkennard
Site Admin
 
Posts: 758
Joined: Mon Jul 21, 2008 2:40 pm

Re: parameter limits

Postby mgkennard » Tue Oct 07, 2008 8:13 pm

... or ...

min(ladies, total people)

which would be simpler!
mgkennard
Site Admin
 
Posts: 758
Joined: Mon Jul 21, 2008 2:40 pm

Re: parameter limits

Postby bitman » Tue Oct 07, 2008 11:59 pm

That'll do me, thanks, I was hoping for data-entry validation, but I know that would be a lot to ask, the min & max values would have to accept calcs. Don't want much do I? ;)

Many thanks, great product.
bitman
 
Posts: 3
Joined: Tue Oct 07, 2008 12:41 am


Return to Problems

Who is online

Users browsing this forum: No registered users and 0 guests

cron