Use of local variables in triggers:
if ($IsValid) {
Defined Values:
if (USE_SERVER) {
Expressions:
if ($IsValid > 3) {
Even more complex expressions:
if ((isset($IsValid)) && ($NumTries < 3)) {
I was going to ask for a wish list for eCart that failed transactions redirect the same way that successful ones do instead of redirecting instantly and suggest that transaction status be added to the drop down for triggers.
Where this recently came up for me was using PayPal Direct Payment. After the transaction, I want to log the information/response so I can see what happened if there is a problem, so I had to set no redirect for success or failure and copy the redirect code to the bottom of the code block. Then my update for the order record is slightly different for success or failure, so I had to create a trigger value and add it to an array WA will recognize (GET or COOKIE for example) in order to trigger an update on success and a different update on failure.