Set b to true if the string s is empty, false otherwise
New implementation

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.

Other implementations
(def b (nil? s))
b = s.empty();
var b = string.IsNullOrEmpty(s);
final b = s.isEmpty;
b := s == ""
boolean b = s.equals("");
b := (s = '');
use strict;
my $b = $s eq '';
b = s == ''
b = s.empty?
b = s.is_empty()