What's the syntax for Mod(ulus) ?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

What's the syntax for Mod(ulus) ?

Post by Me_again » Wed Mar 01, 2006 4:10 am

What's the correct form to use mod? I tried Excel style mod(100,10) and a few others without success. Can I use it in a simple Let> or only in VB Script?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Mar 01, 2006 5:57 am

Use "mod" as an operator within an arithmetic function:

Let>remainder={11 mod 3}
Message>The remainder = %remainder%

This will result in remainder = 2
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Mar 01, 2006 2:28 pm

Aha, the secret is CURLY brackets. Thanks Bob :)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts