Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If statment - number of executions after 'then'

Status
Not open for further replies.

Golfnit

Technical User
Joined
Feb 20, 2002
Messages
5
Location
US
Hello,

I was wondering how long (in number of statments) an 'if' statment was in affect.

----- Code ------

if IsNull({DEPT.Name}) or
{DEPT.DeptID} = "ADM" and {?Administrative}=False or
{DEPT.DeptID} = "A" and {?Audit} = False or
{DEPT.DeptID} = "BKG" and {?Bookkeeping} = False or
{DEPT.DeptID} = "P" and {?Partner} = False or
{DEPT.DeptID} = "T" and {?Tax} = False
then

WhilePrintingRecords ;
If {TIME.TranDate} in {?CurrBegEndDate} and {TIME.WorkCode} < &quot;900&quot; then NumberVar CurrActualGroup:= CurrActualGroup + {TIME.Hours};

WhilePrintingRecords ;
If {TIME.TranDate} in {?CurrBegEndDate} and {TIME.WorkCode} >= &quot;900&quot; then NumberVar CurrNonBillGroup:= CurrNonBillGroup + {TIME.Hours};

WhilePrintingRecords ;
If {TIME.TranDate} in {?CurrBegEndDate} then NumberVar CurrTotalGroup:= CurrTotalGroup + {TIME.Hours};
.
.
.

The statments go on and on but does the first 'if' statment cover the rest of the page or just the first command?

Thanks in advance!
 

Never mind, I figured it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top