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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If then else statement

Status
Not open for further replies.

Hueby

MIS
Oct 20, 2004
321
US
Hi all,

I'm trying to use a IF/ElSE loop in a formula.

I have this in there now:
Code:
numbervar total;

if {spTMWOhours;1.pid} = 1 then
total = total + {#RTotal0}

....All I get back is True or False. Am I doing this wrong?? Can anyone give some insight? Thanks!
 
Missing the colon in total = total + {#RTotal0}

Code:
numbervar total;

if {spTMWOhours;1.pid} = 1 then
total := total + {#RTotal0}

-lw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top