[messages] [Module Design] Re: Comparing properties
irishwulf
irishwulf at gmail.com
Fri Jan 27 11:13:52 MST 2012
A quick look at the PropertiesPieceFilter class indicates that the way
this is done in 3.1.18 is:
(1) Split the expression around ||
(2) Split each subexpression around &&
(3) Try to match each subexpression to an OPERAND COMPARATOR OPERAND
pattern - succeed (!!) if unable to match this pattern (so, i.e.,
setting 'MyProp' to 'false', and entering 'MyProp' as the property match
expression, will always succeed. For that matter, 'false' will always
succeed)
This is borne out in my own brief testing; so, for instance, the
following will evaluate to true with MyProp = TRUE:
MyProp = FALSE && MyProp = FALSE || MyProp = TRUE
Cheers,
Seth
_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=30124#p30124
More information about the messages
mailing list