| Author |
Logic in Decide Shape
|
|
| Namshub 2005-12-02, 7:48 am |
| I'm not sure how you write the C# type logic predicates and the ones I have
tried don't seem to work.
I have 2 variables a StatusValue and a EventType.
I want the True statement to fire if the Status is not equal to 0 execept
when the EventType is "D" (this would put all failures except "D" event
types into a failed Queue)
how would i write this? I know you use the != the & or the && i'm not
sure which logic predicates to use
| |
| Samuel L 2005-12-02, 5:51 pm |
| Hi Namshub!
If I interpret your description correctly this is the way you should write
the logic:
StatusValue != 0 && EventType != "D"
This expression will evaluate to true exactly when
Status is not 0 AND Event is not D
This means that if status = 0 then this expression will be false
It also means that if Event = D then this expression will be false
Hope this was what you intended!?!
Please let me know if something is unclear!
Good luck!
| |
| Namshub 2005-12-02, 5:51 pm |
| Thanks, i thought so, it looks like my assumed logic for
StatusValue = xpath(PasOut,"string(@StatusValue)"); does not actually
render the correct value from this document.
<?xml version="1.0" encoding="utf-16"?>
<PASData StatusValue="0" StatusDescription="SUCCESS">
<PASTransaction>
<TransactionDate>20051129</TransactionDate>
<TransactionID>32109</TransactionID>
<Event>PMIA</Event>
<EventType>A</EventType>
<TransactionTime>121408</TransactionTime>
So now i've got to figure out how to get this value....
"Samuel L" <SamuelL@discussions.microsoft.com> wrote in message
news:1370AE30-1C2C-46D2-8510-DEE18224F326@microsoft.com...
> Hi Namshub!
>
> If I interpret your description correctly this is the way you should write
> the logic:
>
> StatusValue != 0 && EventType != "D"
>
> This expression will evaluate to true exactly when
> Status is not 0 AND Event is not D
>
> This means that if status = 0 then this expression will be false
> It also means that if Event = D then this expression will be false
>
> Hope this was what you intended!?!
> Please let me know if something is unclear!
>
> Good luck!
>
|
|
|
|