Skip to main content
Windward

What is the new version of tag.isNotEmpty() method?

Overview

A look at the "notEmpty" attribute in the tag editor.

Resolution

QUESTION:

Using new WW v.7.1.20, what would be the appropriate replacement for the following old version's method:

if (!tag.isNotEmpty()) {<some-code>}

 

ANSWER:

You can use the "notEmpty" attribute in the tag editor and set it equal to "true". The full tag would look like this.

<wr:if select='/node_you_want_to_test' notEmpty='True'>