Conditionally Render

All of the steps have an option to conditionally render under their advanced tab. What this means is that you can prevent that step from being applied to your components using a little logic. 

Why?

Let's say you're building a deck of characters. Some characters use armor, like paladins and barbarians. However, others like mages and necromancers do not. Rather than showing a zero for armor, you'd rather not display anything armor related on those cards. Conditionally render will let you do that. 

When Will It Be Applied?

If the conditionally render field is entirely empty.

If the conditionally render field has something in it and whatever is in it is not 0 or empty once the template engine processes it.

Examples

The above assumes that $armor has a value that is not empty and is not 0.

The above assumes that $armor is greater than 0.

When Won't It Be Applied?

If the conditionally render field has something in it, but after the template engine processes it, the result is 0 or empty.

The above assumes that $armor doesn't exist, or its value is empty or 0.

The above assumes that $armor is 0 or less.

Still need help? Contact Us Contact Us