Add versus Let

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
bernie
Junior Coder
Posts: 47
Joined: Sun Sep 22, 2002 4:16 pm
Location: Virginia

Add versus Let

Post by bernie » Tue Feb 04, 2003 8:30 pm

As a stylistic matter, I was wonder what, if anything, you folks use 'Add>' for. Even in the examples in the help file, the preferred form seems to be:
Let>var=var+1
[cf the help section on RdLine]

Do any of you still use 'Add>'? It almost feels like it is a leftover from a time when msched didn't evaluate expressions in "Let>'...
/Bernie\

Lumumba

Post by Lumumba » Tue Feb 04, 2003 8:57 pm

Let>var=var+1 (13 characters)
Add>var,1 (9 characters)

Same result - less to write - lazy developers isn't it ?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Feb 05, 2003 12:20 am

Add can also add a number of days to a date:

GetDate>today
Add>today,2

Let can't do this.
MJT Net Support
[email protected]

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