Jump to content

Empty string: Difference between revisions

no edit summary
No edit summary
Line 1,479:
 
When using comparison operators, it is crucial to double-quote the variable within the conditional expression. This will ensure the shell sees the correct number of arguments. For example, if one were to write <tt>[ $s = "" ]</tt>, then after variable substitition, the shell will try to evaluate <tt>[ = "" ]</tt> which is a syntax error.
 
=={{header|Ursa}}==
<lang ursa>decl string s
set s ""
 
if (= s "")
out "empty" endl console
else
out "not empty" endl console
end if</lang>
 
=={{header|VBA}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.