![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
• A table.field reference
• Actions under the Y column are performed only when the argument DEPT has a value greater than 0.
In the following example, actions under the Y column are performed only when the argument NEW has a value of Y. If the value is N, actions under the N column are performed.
When using an argument as a condition, any character value passed into the argument other than Y is evaluated as if it is N. An error occurs if a numeric value is passed in.
To handle more complicated situations, you can invoke a functional rule as a condition. The following rule illustrates the use of a function, in this case the PATTERN_MATCH tool. In the example:
• The rule checks to see if the commands SELECT or DELETE, or an abbreviation of these commands, such as SEL or DEL, are valid.
Normally, if you have several commands, you would store them in a table and use LIKE as your selection operator.
•
• If the command is not valid, the user gets a message on the screen explaining that the command is not acceptable. The following illustrates a rule using PATTERN_MATCH:
When using a functional rule as a condition, any character value returned other than Y is evaluated as if it is N. An error occurs if the functional rule returns a numeric value.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |