Anonymous user
Empty string: Difference between revisions
! alphabetical order.
(! alphabetical order.) |
|||
Line 148:
REM Check that a string is not empty:
IF var$ <> "" THEN PRINT "String is not empty"
</lang>▼
=={{header|Burlesque}}==▼
Empty string is <tt>""</tt> and checking for empty strings (or empty lists) can be done with the <tt>nu</tt> command.▼
<lang blsq>▼
blsq ) ""▼
""▼
blsq ) ""nu▼
1▼
blsq ) "a"nu▼
0▼
</lang>
Line 174 ⟶ 161:
& !d:~ { neither is d an empty string }
)
▲</lang>
▲=={{header|Burlesque}}==
▲Empty string is <tt>""</tt> and checking for empty strings (or empty lists) can be done with the <tt>nu</tt> command.
▲<lang blsq>
▲blsq ) ""
▲""
▲blsq ) ""nu
▲1
▲blsq ) "a"nu
▲0
</lang>
|