Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2009, 01:20 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Default $Month$ Variable

Hello,

I would like to figure out how to take the current $Month$ variable and subtract it by 2 and set the new value as a new variable $twomonthsago$.

How can I achive this?

Thank you
Reply With Quote
  #2 (permalink)  
Old 10-05-2009, 01:30 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Default Answer

Using the Variable Operation I was able to easily do the above task.

Thank you.
Reply With Quote
  #3 (permalink)  
Old 10-14-2009, 12:04 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by Clay View Post
Using the Variable Operation I was able to easily do the above task.

Thank you.
Clay -
What answer would your method give for month 01 (January)?
Reply With Quote
  #4 (permalink)  
Old 10-14-2009, 08:55 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

After Variable Operation command, you can check if the resulting month is -1 then reset it to 11 and if the result is 0 then reset the variable to 12.

We have attached a sample for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Hope that helps.
Attached Files
File Type: atmn Sample.atmn (610 Bytes, 4 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved