View difference between Paste ID: SB89GxU0 and 6jtejiKL
SHOW: | | - or go back to the newest paste.
1-
def nullVariable = null
1+
def variable = null
2-
def emptyString = ''
2+
assert (variable ?: 'The variable is null'​​​​​​​​​​​​​​​​) == ​'The variable is null'​