The "empty is not needed" test is not correct

Created on 5 March 2025, about 1 month ago

Problem/Motivation

This condition:

{% if variable is not empty %}

raised the warning "The exact same as just testing the variable, empty is not needed."

But if I switched it to:

{% if variable %}

then the condition would fail if variable was zero.

Proposed resolution

Correct or remove the warning.

Remaining tasks

Implement.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024