Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(def b (nil? s))
b = s.empty();
var b = string.IsNullOrEmpty(s);
final b = s.isEmpty;
b := s == ""
Strings cannot be nil
let b = !!s
boolean b = s.intern() == "";
If you're comparing a String reference to a String literal, you can use the equality operator if you "intern" the reference.
boolean b = s.equals("");
b := (s = '');
The brackets are optional.
b = not s
b = s == ''
b = s.empty?