Skip to content
Snippets Groups Projects
Commit b6474c47 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Support "if-not-variable" condition

parent 3ca8184f
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,12 @@ class Task:
if v not in variables.keys() or (isinstance(variables[v], bool) and not variables[v]):
continue # skip
if "if-not-variable" in p:
v = p["if-not-variable"]
if v in variables.keys() and (not isinstance(variables[v], bool) or variables[v]):
continue # skip
args.append(p["value"].format(**variables))
# print()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment