Empty string: Difference between revisions

Add Dart
(Added zkl)
(Add Dart)
Line 312:
}</lang>
 
=={{header|Dart}}==
 
<lang dart>main() {
var empty = '';
 
if (empty.isEmpty) {
print('it is empty');
}
 
if (empty.isNotEmpty) {
print('it is not empty');
}
}</lang>
=={{header|Déjà Vu}}==
Like in Python, empty strings are falsy, non-empty strings are truthy.
Anonymous user