Determine if a variable is passed to compiled script

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Determine if a variable is passed to compiled script

Post by kpassaur » Tue Jan 09, 2007 1:30 pm

I am trying to determine if a variable is being passed to a compiled script. The Variabe is just that variable. If it is passed I want the program to execute automatically and if not I want the user prompted.

I have tried about everything I can think of and nothing seems to work. The variable is a filename with no extension so it can be about anything.

The follow does not work and I guess I am just brain dead - as this should be very simple

If>%LoanNumber%=

and

Len>%LoanNumber%,testlength
If>%testlength%>0

Both don't work

Any ideas,

Thanks in advance

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

Post by JRL » Tue Jan 09, 2007 1:40 pm

Use the Assigned> function

Assigned>LoanNumber,aresult
If>%aresult%=TRUE,continue,end

Label>continue
//Do Stuff

Label>end

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Assigned Function passing variable

Post by kpassaur » Tue Jan 09, 2007 1:48 pm

Thank you I never knew of that command

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