| View previous topic :: View next topic |
| Author |
Message |
mpcluever
Joined: 23 Feb 2006 Posts: 22
|
Posted: Tue May 23, 2006 3:21 pm Post subject: new to IF function and need some minor help |
|
|
I am new to IF functions. How do i set the contents of the clipboard as a variable? I am trying to write it so that it goes to a specific spot on a web page and copies a number. If the number is less than 4, it should click one spot and if not it should click a different spot. Any chance someone could post a simple example? _________________ Matt P Cluever |
|
| Back to top |
|
 |
Greg
Joined: 22 Dec 2005 Posts: 246
|
Posted: Tue May 23, 2006 3:24 pm Post subject: |
|
|
| No. You ask three different questions. And you don't provide enough information to create a sample script. Please elaborate exactly what you want. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue May 23, 2006 3:40 pm Post subject: |
|
|
"If" isn't a function, but a "flow of control" command...
"Clipboard" is already a variable.
Syntax (check the If manual page for details) looks like:
If (clipboard = 4)
{
; Do this
}
Else
{
; Do that
} _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
mpcluever
Joined: 23 Feb 2006 Posts: 22
|
Posted: Tue May 23, 2006 6:01 pm Post subject: |
|
|
perfect! i just needed to know how to word it. thanks! _________________ Matt P Cluever |
|
| Back to top |
|
 |
|