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} < "900" then NumberVar CurrActualGroup:= CurrActualGroup + {TIME.Hours};
WhilePrintingRecords ;
If {TIME.TranDate} in {?CurrBegEndDate} and {TIME.WorkCode} >= "900" 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!
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} < "900" then NumberVar CurrActualGroup:= CurrActualGroup + {TIME.Hours};
WhilePrintingRecords ;
If {TIME.TranDate} in {?CurrBegEndDate} and {TIME.WorkCode} >= "900" 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!