Page 1 of 1

Check if binding is null

Posted: 12 Jul 2017, 19:02
by pepitopajas
Hello, I am giving this comparison:
{Video.bitrate == null? "NULL": "NO NULL"}

thanks

Re: comparison

Posted: 13 Jul 2017, 01:10
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