KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Using the "or" operator in the Behavior rule
PRODUCT: 4D Business Kit | VERSION: 2.x | PLATFORM: Mac & Win
Published On: April 15, 2004
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

The purpose of the built in behavior rules is to provide for discounts or addition of products into the shopping cart. When you create a behavior rule, you may find the need to check for multiple products in the shopping cart. For example,

1) [QtItems/C01=product1]>0 - will return true if product1 is in the shopping cart.

2) ([QtItems/C01=product1 or C01=product2]>0) - will return true if either product1 or product2 is in the shopping cart.

3) ([QtItems/C01=product1]>0) | ([QtItems/C01=product2]>0) - will return true if either product1 or product2 is in the shopping cart (same as #2).