Bookshelf Home | Contents | Index | PDF |
Product Administration Guide > Siebel Configurator Rule Assembly Language > About Operators in Rule Assembly Language > Comparison and Pattern Matching Operators in Rule Assembly LanguageComparison operators expect numeric operands. This means when you specify an item or arithmetic expression, the Siebel Configurator engine uses the quantity of the item or the value of the expression. These operators produce a logical result. This means the operator evaluates and compares the quantities of the operands and returns a true or false result. The greater-than operator (>) is an example. The Siebel Configurator engine interprets the following top-level constraint to mean the quantity of item A must be larger than the quantity of item B in the solution. The Siebel Configurator engine enforces this constraint by adjusting the quantity of A or B as needed to make sure that the constraint is always true. When used as sub-expressions, comparison operators return true or false. For example, if the quantity of item A in the solution is not greater than the quantity of item B, the example above returns false. This is then acted on by the associated top-level expression. Pattern matching operators compare two strings. You can test whether the strings are a match or a mismatch. Pattern matching operators return true or false. Comparison operators are shown in Table 31. Multiple Operands for Comparison OperatorsYou can use multiple operands in constraints containing comparison operators. For example, you could write the following constraint: This syntax is interpreted by the Siebel Configurator engine as if you had written two constraints: Note that [A] is the first operand in both the constraints. The Siebel Configurator takes the first operand and creates expressions between it and each remaining operands. There are no limitations on the number of operands you can use in this type of expression. Note that the expression are interpreted by the Siebel Configurator engine as pairs that always include the first operand. This type of expression does not create implied constraints between other operands. For example, you write the following constraint: This constraint expression is interpreted as A !=B and A!=C. It does not imply that |
Product Administration Guide | Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |