Swift Operators
The following infix operators are available for use in Swift script expressions.
operator | purpose |
---|---|
+ | numeric addition; string concatenation |
- | numeric subtraction |
* | numeric multiplication |
/ | floating point division |
%/ | integer division |
%% | integer remainder of division |
== != | comparison and not-equal-to |
<> ⇐ >= | numerical ordering |
&& || | boolean and, or |
! | boolean not |