...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
...
...
...
...
...
...
...
...
...
- Press the button in the left-hand menu bar of PhixFlow – a list of all attribute functions available in PhixFlow will appear
- Double-click on the entry for switch to bring up the help page
...
...
...
...
...
...
...
...
...
...
By the end of this chapter you will be able to:
- Use the switch() function
- Use the forEach() function
...
- Press the button in the left-hand menu bar of PhixFlow – a list of all attribute functions available in PhixFlow will appear
- Double-click on the entry for switch to bring up the help page
...
Expression: work out the transaction type description from TRANSACTION_TYPE, using a switch() statement, according to the rules below – use the examples in the help for switch() to get started
TRANSACTION_TYPE | Description |
1 | "Direct Debit" |
2 | "Standing Order" |
3 | "ePayment" |
4 | "Cheque" |
Any other value | "Unknown" |
...
- ACCOUNT_NUM
...
- Name: TotalPosTrans
- Type: Float
- Expression: using a forEach loop, add up the total of all positive transcations, and store it in this attribute
...
...
...
...
...