Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If.. then..else statement
#1
Solved: 11 Years, 3 Months ago
Hi all,
Some basic question

I am writing sample code

Code:
intfirst=False
intsecond=False

If Ucase(datatable("first", dtGlobalsheet)) = "True" Then
intfirst=true
Runaction "firstone", oneiteration
elseif Ucase(datatable("second", dtGlobalsheet)) = "True" Then
intsecond=True
Runaction "secondone", oneiteration
else
Runaction "Thirdone", oneiteration
end if

Guys the question is even if I set the value in global datasheet as true for "first"
the script still executes action "Thirdone" and just skips the previous two actions. It does not show any syntax error either.

can anybody explain this?
Reply


Messages In This Thread
If.. then..else statement - by sunny rao - 11-07-2008, 08:39 AM
RE: If.. then..else statement - by Ankur - 11-07-2008, 10:31 AM
RE: If.. then..else statement - by sunny rao - 11-07-2008, 11:43 AM
RE: If.. then..else statement - by Ankur - 11-07-2008, 12:13 PM
RE: If.. then..else statement - by sunny rao - 11-08-2008, 08:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing statement and commiting statement via qtp unbeliever 6 20,416 01-07-2010, 07:11 PM
Last Post: unbeliever

Forum Jump:


Users browsing this thread: 1 Guest(s)