See my more detailed answer here

The framework does support nested ifs, it's simply that it has a bug you appear to be running into.

Surround the content of the second if with a div if possible.

You could also make the first child after the if a div (style="display:none" even works).