Open makwana8055 opened 6 years ago
why not use separate assert annotations and give them different priority values as required?
"Amount1 == null || Amount2 == null || Amount2 <= Amount1" that should do it. It Amount1 hat no value -> true, if Amount2 has not value -> true and it Amount2 <= Amount1 -> true.
That way it will only check if Amount1 and Amount2 are set.
Is it what you need?