Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Perhaps it is because it happens automatically in pretty much every other language I use, but it would be really convenient if conditional clauses could be coerced to a boolean, as necessary:
variable = doSomething()
if( variable )
{
println( "variable is not null" )
}
else
{
println( "variable is null" )
}