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 01-25-2009, 07:11 PM
ZappCoding ZappCoding is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default AA5.0 Standard Restricted use of If commands?

As in the last post we made, we did finally manage to get one If command to work. However if we try to produce another it will give us the error whenever we try to save it.

Code:
Invalid Syntax. Please insert an "If" command.
Code:
If $OrderStatus$ Equal to "Completed" Then
     Exit Loop
Else If $OrderStatus$ Equal to "Past Due" Then
Else If $OrderStatus$ Equal to "Active" Then
End If
I can understand if 2 "Else If" commands won't work. However with just one it still won't work. This is just one of the If Commands we have disabled throughout our various atmn files.

Code:
If Window Does Not Exist("Single Photo Upload - Internet Explorer provided by Dell") Then (Wait up to 5 seconds - for Window not to exist)
     Mouse Click: Left Button on 'FolderView' in "All"
     Mouse Click: Left Button on "FolderView' in "All"
     Keystrokes: [RIGHT CLICK]m[END] Fail in "All"
     Run Task "C:\Users\User\Documents\Automation Anywhere\Automation Anywhere\My Tasks\Photo.atmn" @Repeat : Do Not Repeat @ Speed : High Speed
     Stop The Current Task
End If
Try to save that and it gives the same error. Also when we disable the one working If command it does save. Except it ignores the command and does it to every single file regardless of the window existing or not.


If Command that works:
Code:
If $FullName$ Equal to $FullName2$ Then
     Variable Operation : $count$ + 1 to $count$
Else If $FullName$ Not Equal to $FullName2$ Then
     Variable Operation : 1 to $count$
End If
Simple enough code. It only adds to the count if the 2nd photo matches the first one through use of our string manipulation. Since photos have a order # and a multiple #

11111 1
11111 2
11112 1
11112 2
Would give us a count of 2 each time it uploaded the photos for 11111 and 11112 and then it would know to add two photos each time it went to that specific order #'s form.

--Due to customer privacy clause we can not attach the atmn file here. But we can show example codes that do not include specific site URL that are accessed. Including passwords used. Thank you for understanding.
Reply With Quote
  #2 (permalink)  
Old 01-25-2009, 09:46 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please check the version of Automation Anywhere installed on your machine? You can check the version from Help-> About Automation Anywhere.

This issue has been fixed in version 5.0.1.

We suggest you to download the latest version of Automation Anywhere i.e. 5.0.2 from our website, Automation Anywhere - The Leading Automation Software

Hope that helps
Reply With Quote
  #3 (permalink)  
Old 01-25-2009, 09:59 PM
ZappCoding ZappCoding is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default

We had it on Automatic Update. Strange. The version just says 5.0. We will update at the earliest possible time.

Thank you for your help. Will reply soon if this fixes it.
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 09:55 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