Dim task As XElement = <task>
<body>body</body>
<optional><%= myVar %></optional>
</task>
Is there anyway to remove <optional>
when myVar Is Nothing
?
Dim task As XElement = <task>
<body>body</body>
<optional><%= myVar %></optional>
</task>
Is there anyway to remove <optional>
when myVar Is Nothing
?
You can use an IIf