If asset_metadata OR asset_metadata exists

Matrix keywords have limited scope for boolean logic as found in most other programming languages.

You can simulate OR logic with the empty keyword modifier.

%begin_asset_metadata_thing1^empty:{asset_metadata_thing2}%
...
%end_globals%

AND logic can only be achieved via nesting, which becomes complex with multiple levels, so I always recommend writing the begin and end keywords for each level before doing anything else.

@Bart, are there any plans to improve boolean logic?

1 Like