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!

Setting mutliple variables within If-Then-Else command 2

Status
Not open for further replies.

Flopper

Technical User
Joined
Jan 19, 2001
Messages
140
Location
AT
Greetings,

As the title suggests, is it possible to set multiple variables within an If-Then-Else formula?

The following forumla will give you the idea... except that it doesn't work.
-----------------
Numbervar A;
Numbervar B;
Numbervar C;

If {@Test}=1
then
(
A:= A+1 and
B:= {@FormulaX} and
C:= A+B
)

Cheers
 
Your formula should work if you re-write as:
Numbervar A;
Numbervar B;
Numbervar C;

If {@Test}=1
then
(
A:= A+1;
B:= {@FormulaX} ;
C:= A+B
)

Mike
 
You need some semicolon's in there to seperate each statement:

Numbervar A;
Numbervar B;
Numbervar C;

If {@Test}=1
then
(
A:= A+1;
B:= {@FormulaX};
C:= A+B;
)


~Brian
 
Thanks all,

Works a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top