`unless` is useful outside of single-line statements

This commit is contained in:
Michael Ficarra 2011-10-02 21:03:36 -03:00
parent 981db17b8f
commit 1627922060
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ Expressions
are the same as boolean <tt>true</tt>, while <tt>off</tt> and <tt>no</tt> are boolean <tt>false</tt>.
</p>
<p>
For single-line statements, <tt>unless</tt> can be used as the inverse of <tt>if</tt>.
<tt>unless</tt> can be used as the inverse of <tt>if</tt>.
</p>
<p>
As a shortcut for <tt>this.property</tt>, you can use <tt>@property</tt>.