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 07-21-2009, 09:50 AM
rlauretta rlauretta is offline
Junior Member
 
Join Date: Oct 2008
Posts: 13
Default Using If comand with variables

Can AA take data from the clipboard (copied from a website) such as:
ROSEMARY ST, APPLE VALLEY, CA 92308-3323, SAN BERNARDINO
and know what it is looking at?

I have to copy all of this text so I need to know if AA can go through the line and pick out what I need (city or zip) to match it against a master list and if the condition is true the script will contnue.

THX
Reply With Quote
  #2 (permalink)  
Old 07-21-2009, 05:11 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Using 'If Variable' command you can check if particular string is included in clipboard and inside If-Endif you can use String Manipulation command to extract the zipcode or city.

For your reference, we have attached a sample task. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

This task would search for city, SAN BERNARDINO in system variable, $Clipboard$. If found it would extract the zip code and display it in a message box.

Note: You need Automation Anywhere 5.5 to run this task.
Attached Files
File Type: atmn StringManipulationSample.atmn (788 Bytes, 5 views)
Reply With Quote
  #3 (permalink)  
Old 07-22-2009, 09:16 AM
rlauretta rlauretta is offline
Junior Member
 
Join Date: Oct 2008
Posts: 13
Default

Thanks for for the reply

I don't need to extract the data I just want AA to see that the zip code or city matches against a master list and then " if true" continues running the remaining steps in the script or "if not true" stops.

thanks

Also does 5.5 have features that would make this eaiser?
Reply With Quote
  #4 (permalink)  
Old 07-22-2009, 02:13 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Yes, in that case just use 'If Variable' command to check if $Clipboard$ contains zip code or city of master list. Inside If-Endif block place the commands to execute when condition is true else stop the task. The text format of commands would appear something like this,

1) If $Clipboard$ Includes "92308-3323" Then
//Commands to execute
2) Else
3) Stop The Current Task
4) End If

Hope that helps.
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 03:27 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