Jump to content

This topic is 7586 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a calculation that works, but I'm thinking there's probably a more elegant solution:

If( myNumber - 1 > 0, myNumber - 1, 0 )

I.e., I want to subtract one, but not go into negative numbers. Is there a clever-er calc for this?

Posted

That looks right. I thought I'd looked at Max, but maybe it was Min I thought about and Min won't work. Thanks, Shad.

This topic is 7586 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.