Name
condition
Synopsis
Sets a property if a condition is true. This task
combines basic Boolean expressions with the
available and uptodate tasks.
Attributes
-
property(1.4, String, Y) The name of a property to set if the condition is
true. If the condition isfalse, the property is not set.-
value(1.4, String, N) The value assigned to the property if the condition is
true. Defaults totrue.
Content
The following elements are considered to be conditions. Exactly one condition must be nested directly within this task. These, in turn, may contain other nested conditions as outlined here.
-
<not> Contains exactly one nested condition, negating its result. Does not have any attributes.
-
<and> Contains any number of nested conditions, evaluating to
trueif all nested conditions aretrue. Conditions are evaluated left-to-right, and evaluation stops if a condition evaluates tofalse. [46] Does not have any attributes.-
<or> Contains any number of nested conditions, evaluating to
trueif any nested condition istrue. Conditions are evaluated left-to-right, and evaluation stops when a condition evaluates totrue. [47] Does not have any attributes.-
<available> Identical to the
availabletask, except itspropertyandvalueattributes are ignored.-
<uptodate> Identical to the
uptodatetask, except itspropertyandvalueattributes are ignored.-
<os> Evaluates to
trueif the current operating system is of a given type. This element has an optionalfamilyattribute of typeString. Legal values arewindows ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access