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 IamaSherpa 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 Error

Status
Not open for further replies.

samimichaels

IS-IT--Management
Nov 17, 2000
20
US
I am trying to create a fomula on a sub-total. When I try the first line alone it runs fine. But then I start putting in the "or" data, I keep getting an error message that a boolean is required after the "then". Why? What am I doing wrong?

if {#RTotal0} > "1" then "$.50" or
if {#RTotal0} > "99" then "$1.00"
 
"OR" along with "NOT" and "AND" require boolean expressions

if {#RTotal0} > "1" then "$.50" does not evaluate to a boolean yes / no

As pointed out replacing "or" with "else" will make your expression work

Jim Broadbent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top