|
|
| Product | |
| Support | |
| Everything Else | |
| Treatment of Undefined Values | |
|
The If-Then-Else tile is a tool for setting up conditions. It is very useful when the logic is understood. The input should always be a True/False statement:
If the input of the If hole is:
The If hole of the If-Then-Else tile must be defined in order for the tile to output the Then or Else hole. Therefore, you must indicate if an undefined value should be treated as True or False if there is any chance that the input could be undefined. Consider this example: You have an order entry systm that automatically gives a 35% discount to preferred customers. The "Discount" Abacus determines whether or not this discount applies:
To avoid this, Helix needs to treat an undefined "Type" as if it is False (i.e., not equal to "Pfrd" in this case). Use the Undefined becomes tile.
If the "Type" is undefined, the If hole will treat it as False. The customer will not receive a discount and will be charged the retail price from the Else hole. |
|