WPCubed Product Support

Error in WPEval

the WPEval handling of comparing strings is erroneous because >,>=,<,<= are used in the wrong direction, the corresponding source should be:

wpeoLarger: ResultVar.BoolValue := CompareText(StringValue, Right.StringValue) > 0;
wpeoEqLarger: ResultVar.BoolValue := CompareText(StringValue, Right.StringValue) >= 0;
wpeoSmaller: ResultVar.BoolValue := CompareText(StringValue, Right.StringValue) < 0;
wpeoEqSmaller: ResultVar.BoolValue := CompareText(StringValue, Right.StringValue) <= 0;

Greetings

Chuck

#1 ♥ 0
3.8k Views 2 users read 1 min
support

I checked the WPTools 7 source and, yes, it was wrong under "wpevBool"

#2 ♥ 0
This category is archived. No new posts are possible.