Place text containing a variable between square brackets to have it appear only if the variable resolves to a non-null value.
[variable ? ifNotNull]You can optionally include a string to print if the variable is evaluated to false, null, or the empty string:
[variable ? ifNotNull :ifNull]
Examples |
---|
Attribute %Code%[ = %InitialValue%];Result: Attribute A1 =0; Attribute A2 =100; Attribute A3; Attribute A4 =10; |
The class %Name% is [%Abstract%?Abstract:Concrete].Result if the Abstract property is selected: The class myClass is Abstract.Result if the Abstract property is not selected: The class myClass is Concrete. |