Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: if (()){}else{} documented?
> While playing golf I've noticed that the 'else' clause is particularly
> intolerant it needs '} else {'
'else' is not the problem: expressions are :) (problem of priority?)
this is ok
if {true} {echo ok} else {echo nope}
those are syntax errors
if{true} {echo ok} else {echo nope}
if {true}{echo ok} else {echo nope}
if {true} {echo ok} else{echo nope}
this does not echoes what you expected :)
if {true} {echo ok}else {echo nope}
regards
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author