if null variable

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
allthenames
Newbie
Posts: 18
Joined: Wed Aug 18, 2010 5:51 pm

if null variable

Post by allthenames » Thu Oct 13, 2011 4:09 am

I'm looking for a simple script to press the back button if a variable is returned as "null" or is not a number.

This is a "screen scraping script" which gathers variables from copy/paste

so if f=null
then press backspace
else
then carry on

something like that. thanks for your help
-Ben

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Oct 14, 2011 3:37 am

The two remarked let> lines were for testing

Code: Select all

VBSTART
VBEND

//Let>f=5
//Let>f=

If>f<>
  VBEval>IsNumeric("%f%"),result
  If>result=False
    Press BackSpace
  EndIf
Else
  Press BackSpace
EndIf

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts