<< Back to previous view

[QB-684] Extend built in condition logic to handle "not" logic
Created: 13/Oct/10  Updated: 27/Dec/12

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 3.0.12
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Roger Perkins Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
I was going to convert some script to use the built-in human readable condition options but realised there's no way to say "variable != true" right now (as an example). I'm not sure if it would be best to add "!=" versions of the different conditions, the other alternative would be to have some sort of check-box to invert the logic (but that could get quite confusing). Ideally I'd like to get rid of as much custom script as possible to make it easy to understand for people looking at it.

An example of what I wanted to convert:

(current.parent==null || !current.parent.anyChildFailed) && (vars.get("JAM_DOING_CI")==null || vars.get("JAM_DOING_CI").asBoolean() != true)
Generated at Sat May 04 16:49:06 UTC 2024 using JIRA 189.