If then

Discuss RoboTask here
Post Reply
spotsphill
Posts: 9
Joined: Tue Nov 25, 2008 12:25 pm
Location: United States
Contact:

If then

Post by spotsphill »

I was wondering how I would have to code the task if I wanted the following:Step 1:  I open an Excel spreadsheet (I know how to do that)Step 2:  If cell A1 is blank, then Alt+F4Essentially, what I want to do is skip the spreadsheet document if it is blank.How do I set up Step 2?  Is it using if/then?  Please help. Thanks!- Phill
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

If then

Post by Oleg »

For example you may get the content of cell A1 into the clipboard and analyze the clipboard content
spotsphill
Posts: 9
Joined: Tue Nov 25, 2008 12:25 pm
Location: United States
Contact:

If then

Post by spotsphill »

Ok, so if I copy the contents of the cell, how do I
analyze it?

I want to delete the Excel file if it contains a blank
A1 field.

Help! Thanks
Last edited by spotsphill on Sun Dec 21, 2008 11:14 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

If then

Post by Oleg »

how do I analyze it?
For example you may compare it with something.
In your case you have to trim EOL symbols (see "STR Trim") and compare with empty string.

[qute]I want to delete the Excel file if it contains a blank A1 field.
[/quote]
First you must close the file
Post Reply