on 08-17-2017 9:47 AM
Hello everybody
does anyone have any experience with, or know if it's possible, to test against transaction data/values in Logic Script?
I have an example where I need to test against a flag (created as an account), and depending on the value (they can be 1, 2, or 3), different outcomes are possible.
Here's a little snipped of the script:
*WHEN A1_ACCOUNT
*IS 1
....which of course doesn't work, since there is no account member = 1 -- it's the transaction data value I'm referring. So I tried
*WHEN A1_ACCOUNT.SIGNEDDATA
*IS 1
*WHEN A1_ACCOUNT./CPMB/SDATA
*IS 1
*WHEN A1_ACCOUNT.%VALUE%
*IS 1
etc. but none of these work.
Appreciate any help here!
Thanks and regards
Trond
Have you tried to use ternary operator: %VALUE% == 1? Expression A : (%VALUE% == 2? Expression B : (%VALUE% == 3?Expression C : Expression D))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.