Check if binding is null

Any questions? Need some help?
Post Reply
pepitopajas
Posts: 1
Joined: 11 Jul 2017, 15:18

Check if binding is null

Post by pepitopajas »

Hello, I am giving this comparison:
{Video.bitrate == null? "NULL": "NO NULL"}

thanks
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: comparison

Post by rednoah »

Most bindings cannot be null and will throw an Exception instead which causes your expression {...} to not return anything at all.

e.g. Here's what I'd do:

Code: Select all

any{bitrate}{'undefined bitrate'}
@see viewtopic.php?f=5&t=1895
:idea: Please read the FAQ and How to Request Help.
Post Reply