News:IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).

...then $quoteCitedStartTime and $quoteCitedEndTime both get the correct start or stop year from the $Name but with an unexpected day/month and a time of 00:00. Whereas (on my UK system) the test $quoteCitedStartTime is "15/06/1990, 00:00" (15 June 1990), were you to use a String-type attribute here the answer would be "1990".

Or use an rule like:

$quoteCitedStartTime=date($1,1,1,12,0);

to give a consistent known day/month to your year figure, e.g. "01/01/1990, 12:00".

Quote:

if $Name.contains("\{date:(.+)>(.+)\}"){$quoteCitedStartTime=$1;$quoteCitedEndTime=

Indeed, the latter if() rule re-uses the $1 & $2 for the first if query: author is "1990" and year os "2006". I think this is unintentional , simply because usage like this was never envisaged back when that functionality was added. The range and scope of Action code function was more limited back then!

Re: Note rule not working if preceeded by other ruleReply #2 - Jan 5th, 2016, 7:16am

Follow up, I've reported this issue on (elsewhere) and in doing so I tested a logical further case, where the second if() within a single rule queries a different string. For instance, based on the above:

Note the second if() is now based on a $MyString (to which I added some relevant data). I can confirm that the same problem occurs in the that second if applies $1 and $2 from the first query so my workaround above could not be used.

Re: Note rule not working if preceeded by other ruleReply #3 - Jan 6th, 2016, 6:22am

First of all, thank you for the deep explanation and have a nice 2016!Sorry for the mistakes in the original post. I wrote it on the notepad before pasting it to the forum, but then made an error pasting the information.I have modified my original post and now it makes sense.Will go through your explanation and try the suggestions, thanks!

Re: Note rule not working if preceeded by other ruleReply #4 - Jan 6th, 2016, 7:14am

Thank you - it was an interesting problem. As the follow up test showed, there is an issue. It'd not regard it as a bug per se, given the design of the app at the time the feature was added. Rather it's an emergent issue that needs documentation at least (I've a note to self to add something to aTbRef) and possibly a fix - although the latter might be complex/expensive for an edge case problem.