Board Thread:Support Requests - Getting Technical/@comment-1881961-20160406144857

I'm trying to convert an older infobox template into a portable version. The original made use of code like the following...

I know that with a normal portable infobox, I could define the row like this:

The problem is that right now we have over 200 references to this template. If a particular item doesn't provide an HP benefit, it calls the template with "|hp=0" rather than not referring to "hp" at all.

What I'd like to do is modify the portable infobox template so that if the value provided is "0", it treats it the same as it normally would if the value wasn't provided at all.

I tried the following:

But it is still presenting the HP row even when the input is zero.

Am I missing something? Or am I out of luck? 