D toc |
---|
Excerpt |
---|
In your recipe steps, you can apply conditional logic to determine if transformational changes should occur. |
You can build logical tests into your transformations in multiple levels:
...
You can use the IF function in any transformation that accepts functional inputs. For more information, see IF Function.
CASE function
You can chain together IF functions in the following manner:
...
D trans | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
If test | Test | Output if true |
---|---|---|
If: | $col >= 0.75 | IN |
If above is false : | $col >= 0.35 | MAYBE IN |
If above is false : | default | OUT |
For more information, see CASE Function.
Logical Operators
Logical operators can be applied to your function expressions to expand the range of your logical tests.
...
Depending on the structure of your transformation and your preferences, either form may be used.
...
D s also | ||||
---|---|---|---|---|
|