Fix attributes referencing not-set content evaluated as true

This commit is contained in:
nathangray
2020-02-12 11:10:52 -07:00
parent 85082b08f2
commit fe4eb42fca
2 changed files with 4 additions and 2 deletions

View File

@ -297,7 +297,8 @@ export class et2_arrayMgr
const parts = _expression.split('=');
// Expand the first value
const val = '' + this.expandName(parts[0]);
let val = this.expandName(parts[0]);
val = typeof val == "undefined" ? '' : '' + val;
// If a second expression existed, test that one
if (typeof parts[1] != "undefined") {