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

boolean is required

Status
Not open for further replies.

Monkey820

Technical User
Dec 11, 2003
62
US
What am I doing wrong?

if {@Balance} < 0 then red else black or
if {V_ORD_DTL_AVALIABILITY.PROMISE_DATE} < CurrentDate then red else black or
if {V_ORD_DTL_AVALIABILITY.PROMISE_DATE} <= CurrentDate + 7 then Blue else black

I am getting an error that a boolean is required before the 2nd "black"
tia
Gertie
 
Try:

if {@Balance} < 0
or
if {V_ORD_DTL_AVALIABILITY.PROMISE_DATE} < CurrentDate then red
else
if {V_ORD_DTL_AVALIABILITY.PROMISE_DATE} <= CurrentDate + 7 then
Blue
else
black

-k
 
sorry, did not work,
error is
"the keyword 'then' is missing"

at the end of the formula
 
Sorry, try:

if {QUARTWAGE.COMPANY} < 0
or
currentdate < CurrentDate then
red
else
if currentdate <= CurrentDate + 7 then
Blue
else
black

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top